Moderators: jmacgreg, michael, jheckman, barbarah, btbell, bdgregg, asmecher
1. I want to delete two tags in the navigation bar, "CURRENT" and "ARCHIVE", how can I do that by changing specific documents?
{if $currentJournal}
<li><a href="{url page="issue" op="current"}" target="_parent">{translate key="navigation.current"}</a></li>
<li><a href="{url page="issue" op="archive"}" target="_parent">{translate key="navigation.archives"}</a></li>
{/if}{* $currentJournal *}
2. I don't know why our website can't show iamge?
3. The homepage of the website is http//....../ojs, but I want to change it to http//...... instead (get rid of "ojs"), how can I do that?
jmacgreg wrote:1. I want to delete two tags in the navigation bar, "CURRENT" and "ARCHIVE", how can I do that by changing specific documents?
You will have to edit your header template files. OJS uses the Smarty template engine to create all HTML pages (http://smarty.net). The files you will need to edit are in your server's OJS folder: templates/common/header.tpl (that's the main header file for the entire site) and templates/article/article.tpl. In each case, you are looking for code that looks something like the following:
- Code: Select all
{if $currentJournal}
<li><a href="{url page="issue" op="current"}" target="_parent">{translate key="navigation.current"}</a></li>
<li><a href="{url page="issue" op="archive"}" target="_parent">{translate key="navigation.archives"}</a></li>
{/if}{* $currentJournal *}
------- I do exactly what you are presenting here, but anything doesn't change, the "Search", "Current" and "Archieve" tags are still there, and the their links still work as before.
I have question here, why should we change both "templates/common/header.tpl" and "templates/article/article.tpl" rather than just "templates/common/header.tpl", based on the fact that it, as you said, is the main header file for the entired site?2. I don't know why our website can't show iamge?
I'm not sure what you mean here. Are you having trouble uploading images? Do they not display once you upload them? Please give more information.
----- The problem is that all the pictures/images do show or work, no matter the images I upload (site logo or homepage image) or the Captcha image. Any cues for it?3. The homepage of the website is http//....../ojs, but I want to change it to http//...... instead (get rid of "ojs"), how can I do that?
You can move the OJS files directly into your public HTML folder if you want: that is, if all the files are on your server in a folder like /var/www/html/ojs/, you can move them all to /var/www/html. It would be easier for me to explain this if you can tell me how you log in to your server/web space, and what kind of path you see when you do. Please note that if you *do* move your OJS files around, you will likely need to correct a few configuration and website settings: see viewtopic.php?f=8&t=1135 and viewtopic.php?f=8&t=2174#p7340.
----------- It is amazing that I can get ride of "ojs". Actually prior to the change, it redirected to "http://.../ojs/index.php?journal=arit" everything a user typed "http://.../ojs". Accordingly, it redirects to "http://.../index.php?journal=arit" after a user types "http://....". Is there a way to trim off the "index.php?journal=arit" and make the homepage exactly "http://..."? I log into the server and ojs using the administrator account.
bimota wrote:jmacgreg wrote:1. I want to delete two tags in the navigation bar, "CURRENT" and "ARCHIVE", how can I do that by changing specific documents?
You will have to edit your header template files. OJS uses the Smarty template engine to create all HTML pages (http://smarty.net). The files you will need to edit are in your server's OJS folder: templates/common/header.tpl (that's the main header file for the entire site) and templates/article/article.tpl. In each case, you are looking for code that looks something like the following:
- Code: Select all
{if $currentJournal}
<li><a href="{url page="issue" op="current"}" target="_parent">{translate key="navigation.current"}</a></li>
<li><a href="{url page="issue" op="archive"}" target="_parent">{translate key="navigation.archives"}</a></li>
{/if}{* $currentJournal *}
------- I do exactly what you are presenting here, but anything doesn't change, the "Search", "Current" and "Archieve" tags are still there, and the their links still work as before.
I have question here, why should we change both "templates/common/header.tpl" and "templates/article/article.tpl" rather than just "templates/common/header.tpl", based on the fact that it, as you said, is the main header file for the entired site?
bimota wrote:2. I don't know why our website can't show iamge?
I'm not sure what you mean here. Are you having trouble uploading images? Do they not display once you upload them? Please give more information.
bimota wrote:3. The homepage of the website is http//....../ojs, but I want to change it to http//...... instead (get rid of "ojs"), how can I do that?
You can move the OJS files directly into your public HTML folder if you want: that is, if all the files are on your server in a folder like /var/www/html/ojs/, you can move them all to /var/www/html. It would be easier for me to explain this if you can tell me how you log in to your server/web space, and what kind of path you see when you do. Please note that if you *do* move your OJS files around, you will likely need to correct a few configuration and website settings: see viewtopic.php?f=8&t=1135 and viewtopic.php?f=8&t=2174#p7340.
Return to OJS Technical Support
Users browsing this forum: No registered users and 0 guests