User-defined tag inside a normal tag??

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
Brad

User-defined tag inside a normal tag??

Post by Brad »

Hi

I will get striaght to the point.
I want to do the following:

Code: Select all

{embed url='modules/PHPDig/search.php?query_string={phpdig}'}
{phpdig} is a User Defined Tag and simply does:

Code: Select all

echo $_GET['query_string'];
The idea behind this is so that I can submit the search string via a form in my template to index.php?page=search&query_string=string Then pass the search string onto the iframe.

Thanks Brad
Brad

Re: User-defined tag inside a normal tag??

Post by Brad »

I fixed it.

For those wanting to know how I did it I will give a short explanation.

Basically I got the Iframe code that {embed url='xxxx'} generated.
Placed that into a page intead of the embed tag then placed {phpdig} where I needed it in the src value of the IFRAME.

So it ended up looking like this:

Code: Select all

<__iframe id='myframe' src='modules/PHPDig/search.php?query_string={phpdig}' scrolling='no' marginwidth='0' marginheight='0' frameborder='0' vspace='0' hspace='0' style='overflow:visible; width:99%; display:none'></__iframe>
However it took me a while to get that to work because TinyMCE was changing the IFRAME code. I know this is probably for a good reason so that you stick to W3C standards etc. However it would still be nice to be able to edit the pure HTML content. So what I did is basically renamed "TinyMCE.module.php" to something else which then disabled Tiny altogether. It would be nice to have simple on/off button on the edit page. Instead of having to fire up an FTP connection and do the renameing your self.

Sorry I got a liitle offtopic there I will post a suggestion in Modules/Add-Ons.
Brad
Locked

Return to “CMSMS Core”