modifying the url from within a user-defined tag

Talk about writing modules and plugins for CMS Made Simple, or about specific core functionality. This board is for PHP programmers that are contributing to CMSMS not for site developers
Post Reply
ignace
New Member
New Member
Posts: 5
Joined: Tue Dec 16, 2008 2:50 pm

modifying the url from within a user-defined tag

Post by ignace »

Hey,

I have created a user-defined tag and a new content page calling my user-defined tag, without any parameters. The user-defined tag is a project browser it display's an image and a little text beneath the image. On the image are there a previous and a next button, so i need to be able to manipulate the url so the tag is able to create the next and previous url's

thanks for any help
User avatar
aln_cms
Forum Members
Forum Members
Posts: 88
Joined: Mon Jan 08, 2007 7:09 pm
Location: Ireland

Re: modifying the url from within a user-defined tag

Post by aln_cms »

you're going to need a parameter I think, it will indicate the current project_id - giving you a starting point for your previous and next links.  If it is embedded in the params, $_GET or pagedata yo may be able to avoid the parameter and source it from there.
--
Alan Ryan
Lead Developer
CodeCrunchers Internet Software Development - Ireland
http://www.codecrunchers.ie
ignace
New Member
New Member
Posts: 5
Joined: Tue Dec 16, 2008 2:50 pm

Re: modifying the url from within a user-defined tag

Post by ignace »

I am well aware on how to retrieve information from the url! That wasn't also my question, the question is how can i modify the current url so that it points to my next and previous projects?

I probably can't.. but no problem i'm using a module already instead
User avatar
aln_cms
Forum Members
Forum Members
Posts: 88
Joined: Mon Jan 08, 2007 7:09 pm
Location: Ireland

Re: modifying the url from within a user-defined tag

Post by aln_cms »

I am well aware on how to retrieve information from the url! 

That wasn't so clear in your initial post.
--
Alan Ryan
Lead Developer
CodeCrunchers Internet Software Development - Ireland
http://www.codecrunchers.ie
Post Reply

Return to “Developers Discussion”