× Here you can get community support related to ReDJ.

how to add itemid to certain URL

More
6 years 7 months ago #6283 by X-Bit
how to add itemid to certain URL was created by X-Bit
Hello Selfget and forum!

First, thanks so much for ReDJ it already helped me a lot!

I know, it might be a silly question...

I have the following URL:
/index.php?option=com_docman&view=document&alias=130-ampelwerkstatt-regeln&category_slug=sachthemen

Where I should preserve:
/index.php?option=com_docman&view=document&alias=

because the part
130-ampelwerkstatt-regeln&category_slug=sachthemen
might change.

At the end I should add "&itemid=319"

So the Url should show at the end:
/index.php?option=com_docman&view=document&alias=something&category_slug=something&itemid=319

Any suggestions would be very welcome...

Please Log in or Create an account to join the conversation.

More
6 years 7 months ago #6285 by admin
Replied by admin on topic how to add itemid to certain URL
In the "To URL" field you can build the final destination using the query variables macros, like querybuildfull:
{querybuildfull var1=value1,...,varN=valueN}
Same as 'querybuild' but with question mark. Builds URL query containing only specified variables. If a value is specified for a variable, this is assigned to the variable

Examples:
{querybuildfull id,task} => ?id=32&task=view
{querybuildfull id,task=save} => ?id=32&task=save
{querybuildfull id,task,action=close} => ?id=32&task=view&action=close

Kind regards,
Luigi

Please Log in or Create an account to join the conversation.

More
6 years 7 months ago #6286 by X-Bit
Replied by X-Bit on topic how to add itemid to certain URL
Luigi,
Thanks for the fast reply.

Unfortunately I seem to dumb to understand any of this, what you wrote.

I would like to read more about it and to understand the concept you are talking about... please, provide me with some links.

Thank you in advance!

Please Log in or Create an account to join the conversation.

More
6 years 7 months ago #6288 by admin
Replied by admin on topic how to add itemid to certain URL
Something like this:
From URL: ^/index\.php\?option=com_docman&view=document&alias=
To URL: {scheme}://{siteurl}/index.php{querybuildfull option,view,ItemId=319}&alias=<ALIAS>&category_slug=<SLUG>
Request only: true (checked)

Kind regards,
Luigi

Please Log in or Create an account to join the conversation.

Time to create page: 0.096 seconds