As directed by this link I have created a custom page for Alfresco Share to use as navigation. The jar file contains images and once again as directed its in META-INF/images (this part was sort of unclear what all should be there).
Upon further research I found out that META-INF is auto generated with a manifest but I am unsure a manifest would help me.
Alright the issue I'm having is that I can't get the images out of the jar file for Alfresco Share.
I've tried this #import url("/share/res/images/Concur.ng");
I've tried hard coding links to where they say it should end up
<src="http/serverIP/share/components/image/alfresco-share-logo.ng">
I tried doing it the way they wanted it done
<i src="/res/images/ADPSelfPortal.png"> (or so I think).
<i src="share/res/images/ADPSelfPortal.png"> tried both.
I need some guidance here if I really wanted to I could just drop the file of images somewhere randomly on the server and point to their location but if they aren't logged in they shouldn't have access to these resources.
Sorry this is a mess I'm frustrated with this problem.
As it turns out the instructions were correct, the smallest typo in the name and syntax when creating the jar is extremely important for adding pages to alfresco. Although finding this information did prove difficult at the time. I mentioned in the comment above that the alfresco folder and the meta-inf folder have to be packaged in the same directory. This functionality is important so that alfresco finds all the proper supporting files. Any new files to add to the static folder must be put into the META-INF folder.
Related
I need help with creating a dedicated folder for my images in my Website repository, and heres how it looks right now.Image of my repository rigt now
Side-Note: I'm not using Git to push or commit these folders, all I'm doing is dumping these folders form my computers storage into github.
If the image doesn't work, heres the link to the rep.
Link to my repository
If anybody could help me with this, that would be a lifesaver.
Thank You.
So I tried importing the images folder itslef tat is located on my computer, and that didn't work out
I'll provide this answer, but I believe this is an excellent opportunity to learn some Gitfu. As this would be so much easier if you had git tracking your repo on your local machine.
First off, I believe you are using the "Add File" functionality on GitHub to upload you files. You can use this functionality to add folders as well. Just provide a slash after the root folder name and then add some dummy file name. This will create the dummy file in your new folder.
After having creating the folder you can upload the files you want into that folder using the same add file mechanism. One thing to keep in mind doing things this way you will have to manually delete the files from their previous location in GitHub. As well as delete the dummy file you created from the step above.
Now that I've answered the question, I highly recommend you learn git. It will save you so much time in the future.
I was hoping you can help with this, i only have about a week ( 10-15h) of experience with front end web development. but i cant figure this out. im trying to find the answer online but cannot locate it.
I purchased my domain name with google, uploaded my html files as well as img files to hostgator. when i go to my site, instead of it going to my index html file it displays all of them. take a look at what i mean
how do i solve this ? or if you know a link to some reading materials kindly provide it so i can learn :)
You have to put all your public pages in the public_html folder. It's the main entry point or the root of your domain name. Also, rename the Index.html file to index.html.
I have tried to embed an image on mediawiki that I have installed on my server. The images are in this folder /var/www/html/mywiki/images$.
Here is the screenshot of what I see when I save the page to view the image
When I try the upload option, this is the error message i get
[b5f5e4d3] 2016-10-25 12:30:15: Fatal exception of type "MWException"
Where could i be making the mistake?
From my experience with mediawiki, when you upload to the site it stores them in randomzed lettered/numbered folders... ie w/images/9/9d and you have no control over uploading them directly to the folder through your server. I haven't tried directly uploading them, I've always used the wiki itself to upload.
MediaWiki offers some extensions for bulk uploading here:
https://www.mediawiki.org/wiki/Category:Bulk_upload
And you can find them under Special categories once you've installed the Extension and updated your LocalSettings.php to allow them to run.
I personally use BatchUpload (https://www.mediawiki.org/wiki/Extension:SimpleBatchUpload) because I don't have a lot of files to upload at one time, and although it is marked as stable, it sometimes sticks... still better than uploading one at a time.
If you find an alternative way for mass uploading using FTP directly to the server, I would love to know... as I searched for that myself.
Good luck!
You should not upload images manually, but use Special:Upload page to upload image into Mediawiki. Error you've mentioned indicates that there is something wrong with your installation, so you should put $wgShowExceptionDetails = true; into LocalSettings.php to see more details about this error. There is a chance that your /images/ directory is not writable - check its permissions.
Dear Haskell community I have written my first gui application and decided to use
threepenny-gui to do so.
The task is the following search the files in a given folder for matches and provide links to open those files. In addition I made nice parse and render function as the files (mostly) have a special formatting.
But now I have stumbled upon a problem - most browsers prohibit links to local files by href="file://localhost/home/user/folder/file.pdf" being opened, for security reasons, which I do understand and find completely sensible.
I tried to use href="./file.pdf" when the program and the file are in the same folder, which also doesn't seem to work.
The code of the whole application is available at github/epsilonhalbe, I run it in a folder and access it via a browser at localhost:100000
The HTTP server provided by threepenny-gui will serve up static content from the directory you specify in tpStatic. Put your files in that directory, and make your links' paths be relative to it, and you'll be good to go!
As of threepenny-gui-0.4.*, there are also two functions loadFile and loadDirectory that can be used to serve a local file or directory at an automatically generated URL. This can be useful if the tpStatic field is not enough.
You'll have to bear with my slightly on this, but please ask if I have left out any pertinent information. I have just taken over a project to create a dashboard for my team. This dashboard has been made using a niche third-party tool that nobody here will have used before. The third party tool auto-generates some code to display "markers" on a webpage. "Markers" being some proprietary code to query a database/apply custom styling etc.
I am trying to display a webpage within the page that has been generated, and I’d like to point this to a local webpage (ie on my C drive). If I pass it an absolute path, then this results in a warning in IE9 as I am mixing data sources - a https website pointing to a http web page. It will display after ignoring the warning, but my userbase is not comfortable enough with computers to ask them to do this.
I believe if I pass it a relative path then it should work, but I can’t find out what directory to base this path off and it doesn’t appear to be anywhere obvious. So, in my current page I have an image with the web address of : https://website:8443/websitereport/images/buttons/locked.gif. What I need to know is where the “websitereport/images” folder is stored so that I can put my webpage in there to give the webpage a relative path. The HTML for this image is :
<img id="dvp_locationbar_lock" class="dvp_imagebutton" style="" dvp_title="ui.tip.lock-page" dvp_image="locationBarPageUnlockedImage" src="/websitereport/images/buttons/unlocked.gif" title="Lock this page">
What are my options for discovering where this folder is stored locally? I am running Apache Tomcat 7.0. It is not displaying if I use the path based off
C:\Program Files (x86)\Apache Software Foundation\Tomcat 7.0\work\Catalina\websitereport
of
\websitereport\page.html
And I cannot find it anywhere obvious in the Apache folder. I have tried :
Searching - no results.
Using PHP to print the current working directory - cannot find out
where to edit the webpage.
Looking at images/information on the existing webpage. They all point
to folders I cannot find.
Inspecting with firebug.
In short, you can't rely on the files being on disk at all - they might be just contained in a *.war file, containing the whole application. Or they might be generated on-the-fly, despite the name sounding like an actual file.
Also, you should not arbitrarily write within a directory even if you find it (my closest guess would be tomcat's webapps/websitereport/ directory if it exists) because nobody will know that something changed during the time since last deployment. So, on the next update of the application, you'll end up overwriting all of your changes again. You typically change the underlying application and redeploy.
You might also find a few references in tomcat's conf/localhost/ directory or even in conf/server.xml, but it all depends on how your server was administered