Welcome to the MetaMod and Chameleon Support Forums.

Before posting, please check out the FAQs.

helpme

 

Need extra help with your Joomla site? Consider paid Joomla support by the developer of Chameleon and MetaMod.

 

Change page%id

Change page%id

Hi,
is it possible to change the $id of an menu link if an action success, for eamlpe in the php field of the success section?

e.g. change 666 to 667
index.php?option=com_sppagebuilder&view=page&id=666

Thanks in advanced!

smarthomesystems
Beginner Modder
ranks
useravatar
Offline
2 Posts
Administrator has disabled public posting

Re: Change page%id

Hi,

yes, there are a couple of ways you could do this.

1 - set up another menu item right next to the one that you want to change, and with the alternative URL. In the Chameleon Succeed action, disable the menu item that you want to "disappear". In the Fail action, tell it to disable the *other* menu item.

2 - in the HTML find/replace succeed action, do a search for index.php?option=com_sppagebuilder&view=page&id=666 and replace with index.php?option=com_sppagebuilder&view=page&id=667

Hope that helps
Stephen

Stephen Brandon
MetaMod / Chameleon developer
If you use MetaMod or Chameleon, please post a rating and a review at the Joomla! Extensions Directory: Chameleon | MetaMod

metamodguy
useravatar
Offline
3328 Posts
User info in posts
Administrator has disabled public posting

Re: Change page%id

Thanks.

Do´s this also works für SELF Menu URLs, because if I add the search/replace nothing happen.
Rule works and uses SUCCEED-Section.
I put the search for under "find and replace -> find" field and the replace with in "find and replace -> replace" field.


Regards.

smarthomesystems
Beginner Modder
ranks
useravatar
Offline
2 Posts
Administrator has disabled public posting

Re: Change page%id

Hi,

the find and replace will operate on the final output of HTML for the page. So if the URL that appears on the page is /page666 (or some other SEF URL) instead of index.php?option=com_sppagebuilder&view=page&id=666 then you would need to search for /page666 as the string. You might want to include some of the HTML around it so that it doesn't alter any other mention of that string on the page. I suggest that you examine the source HTML of the page in your browser to see what the exact HTML is that you're searching for.

Hope that helps
Stephen

Stephen Brandon
MetaMod / Chameleon developer
If you use MetaMod or Chameleon, please post a rating and a review at the Joomla! Extensions Directory: Chameleon | MetaMod

metamodguy
useravatar
Offline
3328 Posts
User info in posts
Administrator has disabled public posting

Board Info

Board Stats:
 
Total Topics:
1679
Total Polls:
6
Total Posts:
5933
Posts this week:
3
User Info:
 
Total Users:
4401
Newest User:
jason59312
Members Online:
0
Guests Online:
126

Online: 
There are no members online

Forum Legend:

 Topic
 New
 Locked
 Sticky
 Active
 New/Active
 New/Locked
 New Sticky
 Locked/Active
 Active/Sticky
 Sticky/Locked
 Sticky/Active/Locked