User Tag&Pretty URL

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
nini

User Tag&Pretty URL

Post by nini »

Hi to All,

i'm developing an user tag, thats get some parameter from url:

?actionname=showobjekt&actiontyp=163

This do search for an objekt in DB with number 163.
What should i write in my tag to get it in somethink like this :

/showobjekt/163

How get then this parameters in
$actionname=...
$actiontyp=..
?

I didn't found any answers in the forum about  this  :( ???
Please help!  ::)
And sorry for my bad english  :-X
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: User Tag&Pretty URL

Post by calguy1000 »

$actionname = $_GET['actionname'];
$actiontyp = $_GET['actiontype'];
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
nini

Re: User Tag&Pretty URL

Post by nini »

No, you didn't understand, my script is working now, but in url-form:

?actionname=showobjekt&actiontyp=163

and i will with pretty-url function get somethink like this:

/showobjekt/163

I can't use hierarchy function, because i get direct all my data from DB with my script!
Redguy
Forum Members
Forum Members
Posts: 44
Joined: Wed May 18, 2005 12:59 pm

Re: User Tag&Pretty URL

Post by Redguy »

I understand what you are talking about, I'm trying to find out how to do this.. I can't believe nobody has written about this?? Am I missing something?
tsw
Power Poster
Power Poster
Posts: 1408
Joined: Tue Dec 13, 2005 10:50 pm

Re: User Tag&Pretty URL

Post by tsw »

Redguy
Forum Members
Forum Members
Posts: 44
Joined: Wed May 18, 2005 12:59 pm

Re: User Tag&Pretty URL

Post by Redguy »

what nini is asking about is if this can be done in user tag, not a module.
Last edited by Redguy on Thu Jun 08, 2006 12:22 pm, edited 1 time in total.
nini

Re: User Tag&Pretty URL

Post by nini »

Mhh.. i see.. Thanks for info.

It is not to difficult/to long to write my own module? I mean, I have a working script and its doing his job. I don't want to spent my time to learn new cmsms language/syntaxes.

What you think? Have anybody wrote his own module?
Post Reply

Return to “Developers Discussion”