a simple back button

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
steven999
New Member
New Member
Posts: 8
Joined: Fri Nov 13, 2009 4:15 pm

a simple back button

Post by steven999 »

I love this software, I'm not so crazy about the docs.  I've searched for this and looked through the default install for an example.

I'm trying to build a simple "back" link to go at the bottom of a page, when clicked, it takes you back to the last page.

I've reviewed the tag library, deciding I have to use cms_selflink. End up trying a variety of set ups, finishing with this:

{cms_selflink dir="prev" label="" text="Back"}

It works, but I think it's taking you back to the previous item in the menu, not the previous page you were on.

The "back" button in the detailed news template is what I want....but that tag - {$return_url} doesn't seem to be in my list of tags under extentions???, and it doesn't work if I place it in the document myself.

Also, I was looking to see if the wysiwyg editor breaks tags....even if placed in with it turned off, then later opened with tiny wysiwyg on.  This info seems pretty critical. not much luck looking for that either.
jmcgin51
Power Poster
Power Poster
Posts: 1899
Joined: Mon Jun 12, 2006 9:02 pm

Re: a simple back button

Post by jmcgin51 »

yes, Tiny (or any other WYSIWYG) can break tags and HTML code.  Turn the WYSIWYG off if you will be putting tags or especially HTML entities in your page.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: a simple back button

Post by Dr.CSS »

That would be a simple JS call...

http://lmgtfy.com/?q=javascript+back
steven999
New Member
New Member
Posts: 8
Joined: Fri Nov 13, 2009 4:15 pm

Re: a simple back button

Post by steven999 »

I knew you could do it in javascript, I just thought there would be a built in ability to do something so fundamental.

I'm still learning how the system and tags and editing work and get applied here in cmsms.

I read a sticky just now about keeping smarty tags away from the designers and page editors...that doesn't seem very practical, I have a whole page of employees...each one is linked to an indepth page,  so it ends up on the first page like this:

>{cms_selflink page='dsmith' text='Dave Smith'}Dave Smith' , it breaks the link. I looked at cms_selflink help but couldn't find anything.
Wishbone
Power Poster
Power Poster
Posts: 1368
Joined: Tue Dec 23, 2008 8:39 pm

Re: a simple back button

Post by Wishbone »

I find it easier to press the back button in my browser.

I find it annoying when I press a javascript back button, which confuses the stack in the browser back button so that when I press the browser back button, I end up going forwards to where I had pressed back..  ???
Last edited by Wishbone on Wed Jan 27, 2010 4:18 pm, edited 1 time in total.
steven999
New Member
New Member
Posts: 8
Joined: Fri Nov 13, 2009 4:15 pm

Re: a simple back button

Post by steven999 »

if used properly, there are good places for "back" links. It's nice to have options.
Post Reply

Return to “CMSMS Core”