Page 3 of 3
Re: Create a user-defined tag to retrieve a field value from table 'cms_content_pro'
Posted: Sat May 01, 2010 5:07 pm
by Pythoniels
I discovered a new problem. I filled in differtent 'extra' forms but those don't show up on the website. Once I looked in my mysql, i discoverd the problem. But i don't know how to solve it.
This is how it looks like:
The one with the ? is wrong. Anyone knows this problem?
Re: Create a user-defined tag to retrieve a field value from table 'cms_content_pro'
Posted: Sun May 09, 2010 5:34 pm
by Pythoniels
Anybody any idea of solving this problem?
Re: Create a user-defined tag to retrieve a field value from table 'cms_content_pro'
Posted: Sun May 09, 2010 9:48 pm
by NaN
Pythoniels wrote:
The one with the ? is wrong. Anyone knows this problem?
Both lines have a '?'
Wich one do you mean?
And what ist wrong?
Sorry but i don't know how the entries should look like.
If there is not in what you have entered, there might be a bug.
Re: Create a user-defined tag to retrieve a field value from table 'cms_content_pro'
Posted: Sat May 15, 2010 3:44 pm
by Pythoniels
What i post will be in the database that isn't the problem. But it's not posted on the website, probably because of the "?". Because on some pages it does work.
Re: Create a user-defined tag to retrieve a field value from table 'cms_content_pro'
Posted: Mon May 17, 2010 11:29 am
by NaN
The "?" should have nothing to do with that.
If i'm right it should just be an image of your SQL Admin what could not be loaded (for whatever reason).
Did you cleared the cache manually?
(Backend: Admin->Global Settings; Tab: Advanced)
Re: Create a user-defined tag to retrieve a field value from
Posted: Sun Apr 10, 2011 10:40 pm
by MickG
This was a great help for some tabbed page templates I had to create ... big thanks for the UDT
Just one small problem .. the tabs didn't work properly in preview mode because content_id isn't passed through in the same way.
I made this small mod to the top few lines to get round the issue ... hope it helps someone else ...
global $gCms;
$db =& $gCms->GetDb();
$content_id = $gCms->variables['pageinfo']->content_id;
//modified for preview mode
if( $content_id == '__CMS_PREVIEW_PAGE__' ) $content_id = $_SESSION['cms_preview_data']['content_id'];
//end of mod
$fields = array();