Create a user-defined tag to retrieve a field value from table 'cms_content_pro'

Talk about writing modules and plugins for CMS Made Simple, or about specific core functionality. This board is for PHP programmers that are contributing to CMSMS not for site developers
Pythoniels

Re: Create a user-defined tag to retrieve a field value from table 'cms_content_pro'

Post 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:
Image

The one with the ? is wrong. Anyone knows this problem?
Pythoniels

Re: Create a user-defined tag to retrieve a field value from table 'cms_content_pro'

Post by Pythoniels »

Anybody any idea of solving this problem?
NaN

Re: Create a user-defined tag to retrieve a field value from table 'cms_content_pro'

Post 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.
Pythoniels

Re: Create a user-defined tag to retrieve a field value from table 'cms_content_pro'

Post 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.
NaN

Re: Create a user-defined tag to retrieve a field value from table 'cms_content_pro'

Post 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)
MickG
New Member
New Member
Posts: 2
Joined: Thu Mar 31, 2011 8:51 am

Re: Create a user-defined tag to retrieve a field value from

Post 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();
Post Reply

Return to “Developers Discussion”