Need extra help with your Joomla site? Consider paid Joomla support by the developer of Chameleon and MetaMod.
- Index
- » MetaMod Pro
- » MetaMod Pro General Support
- » How to Detect a phrase or tree words...
How to Detect a phrase or tree words on a page - please help
How to Detect a phrase or tree words on a page - please help
Hi,
I am using
if ($core_genius->check("url contains mypage/news")
to detect refferal urls, but now I need to identify a set of words on a page. When a user ads a certain product and select a variation of that product, they are redirected to a checkout page and these words are printed on the page.
Example:
The selected Gender - Male
They selected age group - 20-29
So on the checkout page (HIKASHOP) I: am getting
T-short Male Green 20-29
and i want to display a certain message for them.
------ My question - how do i detect:
Male
20-29
------and show a module only to them?
I tried something like: if ($core_genius->check("page contains Male 20-29")
and cannot make it work. Could you please correct?
Looking forward.
Thank you
Re: How to Detect a phrase or tree words on a page - please help
Hi Alex,
unfortunately core_genius doesn't have a mode where it detects page output. That's for complicated reasons, but basically it's because the page has to get rendered before you can get hold of the rendered contents. Modules (e.g. MetaMod) can generally get hold of the rendered content, but sometimes there's a catch-22 situation where the page has to render the module as part of the contents, so the overall rendered content is not ready in time for the module to reference it.
There's a recipe here that can get hold of rendered content in most cases. Try this and see how you get on:
http://www.metamodpro.com/metamod/recip … escription
Cheers,
Stephen
- Index
- » MetaMod Pro
- » MetaMod Pro General Support
- » How to Detect a phrase or tree words...
Board Info
- Board Stats:
- Total Topics:
- 1689
- Total Polls:
- 6
- Total Posts:
- 5942
- Total Posts Today:
- 1
- User Info:
- Total Users:
- 7620
- Newest User:
- giachungjsc
- Members Online:
- 0
- Guests Online:
- 318
- 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