Search Form and Social Buttons

HotThemes Logo and Top Menu

To request a forum account, please login here and open support ticket. Only customers with active order(s) can open forum account!

× Discussion about "Software" Joomla template.

Topic-icon Previous page: link at the end of some articles

More
5 years 1 month ago - 5 years 1 month ago #12657 by elanna
In some categories as NEWS, or FAQ, the correspondent menu lead you to an Article Category list.

After selecting an artilcle from the list, the visitant could want to go back the previous page,, and choose anoter article from the list.

I used this HTML command at the end of each article in that category once:

<p style="text-align: left;"><em><a href="javascript:window.history.go(-1)"><strong><Previous page</strong></a></em></p>

I tried this in Software template, but it doesn't work.

Do you have any suggestion to place a link at the end of articles, to go back previous page navigated?
Last Edit: 5 years 1 month ago by elanna. Reason: spelling mistake

Please Log in to join the conversation.

More
5 years 1 month ago #12668 by ivan.milic
try:

<a href="javascript:;" onclick="javascript:location.href=document.referrer;">
<strong><Previous page</strong>
</a>

Please Log in to join the conversation.

More
5 years 1 month ago #12679 by elanna
Ivan,
I placed this HTML line at the end of FAQ Article 1, as a way to test the result, but it's not working... You can try the same with your templates.

At the end of article, and left aligned we can see: "<Previous page", but with no actived link over the frase.

This HTML seems to run correctly in another project we have in Jommla 1.5.24 with anoter template stile...

Do I have to set any parameter in index.php or template_css.css???

Please Log in to join the conversation.

More
5 years 1 month ago #12684 by elanna
Testing a little bit more, I noticed that even including both javascript options (the mine and your suggestion), after saving the article the script is ignored by the JCE editor, and remais as:

<p><a> <strong><Previous page</strong> </a></p>

I tryed to set "Allow Javascript = YES" in JCE Editor parameters (editing Default profile), and the problem persist.

Any suggestion?

Please Log in to join the conversation.

More
5 years 1 month ago #12697 by ivan.milic
ARe you sure you use JCE, maybe it's TinyMCE , remove "script,applet,iframe" from Prohibited Elements in tinyMCE parameters.

Please Log in to join the conversation.

More
5 years 1 month ago #12797 by elanna
Well... I'm sure it's JCE Editor in it's last version 2.0.19.

You can try to put the javascript, but after saving, the JCE delect th javascript from the line html command.

if you type this:
<p style="text-align: left;"><em><a href="javascript:window.history.go(-1)"><strong><Voltar</strong></a></em></p>

after saving you get this:
<p style="text-align: left;"><em><a><strong><Voltar</strong></a></em></p>

And I have set YES to Allow Javascript in Edit Profile/Default/ Editor parameters setting.

Please Log in to join the conversation.

Time to create page: 0.117 seconds

Links, Partners and Social Media