Hi there
I have a site which has a page (tickets.html) which is a very simple, branded, loading screen which (after 3 seconds) redirects to a page on the ticketsource website, through which people can purchase tickets for that particular show.
At present this page achieves this by being set up as a regular html page that looks like most of our pages, but in the 'head' of the page, the meta tag says
As it currently stands, this URL has to be updated in the html file every time we do a different show, and I really want to get it 'editable'.
I figured I had done enough weird and wonderful things with CouchCMS before to mean i'd be able to do it - but no success!! I think this is not because of coding errors, but because I am trying to do something using the wrong method.
So far I have tried (below I am simplifying the 'code' I used to aid readability - rest assured I used the correct characters to call the CMS code):
1. Simply changing the URL in the meta tag to a 'get_custom_field' which points to a globals.php variable called 'ticketsource_url' - this could not be parsed by the browser, and I simply got error messages stating incorrect character at line x char y
2. Using cms:redirect url='get custom field' as above, but again it could not parse and I (sometimes) got an error message along the lines of 'cannot find url "ticketsource.co.uk/<cms:get_custom_field 'ticketsource_url' masterpage='ticketsales.php'>" which somewhat proves that I am using the wrong method here...
I have played around with different combinations variables, such as setting the variable to the whole url, or only to the unique part of the URL, and then having the redirect either be "url='<get_custom_field ..." or "url='http:www.ticketsource.co.uk/<get custom field"
It's driving me up the walls, because I feel like this should be possible, and I fear I am missing the 'proper' or 'obvious' way to do it.
To clarify what I am attempting to do:
1. Have a field in the Admin Panel into which the ticketsource url can be pasted
2. Have a page (/tickets.php) which redirects to the url entered in the Admin Panel
Ideally it would redirect after 3 seconds (like the page currently does) but it doesn't need to - so long as mysite.co.uk/tickets.php redirects to a ticketsource URL entered in the Admin Panel
Thank you for any help you can provide!! If you want precise copies of the code I have tried I can provide it - but I'm fairly confident that this problem isn't that I've mis-typed code, but rather that I am going about this the wrong way...
Anthony
I have a site which has a page (tickets.html) which is a very simple, branded, loading screen which (after 3 seconds) redirects to a page on the ticketsource website, through which people can purchase tickets for that particular show.
At present this page achieves this by being set up as a regular html page that looks like most of our pages, but in the 'head' of the page, the meta tag says
- Code: Select all
<meta http-equiv="refresh" content="3; URL=ticketsource.co.uk/blahblahblah"/>
As it currently stands, this URL has to be updated in the html file every time we do a different show, and I really want to get it 'editable'.
I figured I had done enough weird and wonderful things with CouchCMS before to mean i'd be able to do it - but no success!! I think this is not because of coding errors, but because I am trying to do something using the wrong method.
So far I have tried (below I am simplifying the 'code' I used to aid readability - rest assured I used the correct characters to call the CMS code):
1. Simply changing the URL in the meta tag to a 'get_custom_field' which points to a globals.php variable called 'ticketsource_url' - this could not be parsed by the browser, and I simply got error messages stating incorrect character at line x char y
2. Using cms:redirect url='get custom field' as above, but again it could not parse and I (sometimes) got an error message along the lines of 'cannot find url "ticketsource.co.uk/<cms:get_custom_field 'ticketsource_url' masterpage='ticketsales.php'>" which somewhat proves that I am using the wrong method here...
I have played around with different combinations variables, such as setting the variable to the whole url, or only to the unique part of the URL, and then having the redirect either be "url='<get_custom_field ..." or "url='http:www.ticketsource.co.uk/<get custom field"
It's driving me up the walls, because I feel like this should be possible, and I fear I am missing the 'proper' or 'obvious' way to do it.
To clarify what I am attempting to do:
1. Have a field in the Admin Panel into which the ticketsource url can be pasted
2. Have a page (/tickets.php) which redirects to the url entered in the Admin Panel
Ideally it would redirect after 3 seconds (like the page currently does) but it doesn't need to - so long as mysite.co.uk/tickets.php redirects to a ticketsource URL entered in the Admin Panel
Thank you for any help you can provide!! If you want precise copies of the code I have tried I can provide it - but I'm fairly confident that this problem isn't that I've mis-typed code, but rather that I am going about this the wrong way...
Anthony