FlexiContent from SVN

More
14 years 6 months ago #17980 by ggppdk
Replied by ggppdk on topic FlexiContent from SVN
Must track this down, as this code must not be uncommented for performance reason, especially in category view.


Please comment out the lines again (at flexicontent.fields.php)

Clear cache and try again if it does not work try this:

goto to file: components/com_flexicontent/classes/flexicontent.helper.php
and replace function getFieldsByPositions at about line 1385 with this
Code:
function getFieldsByPositions($folder, $type) { echo "folder: $folder, type: $type<br>\n"; static $templates; if(!isset($templates[$folder])) { $templates[$folder] = array(); } if(!isset($templates[$folder][$type])) { echo "Quering field in positions...<br>"; $db = JFactory::getDBO(); $query = 'SELECT *' . ' FROM #__flexicontent_templates' . ' WHERE template = ' . $db->Quote($folder) . ' AND layout = ' . $db->Quote($type) ; $db->setQuery($query); $positions = $db->loadObjectList('position') or die($db->getErrorMsg()); foreach ($positions as $pos) { $pos->fields = explode(',', $pos->fields); echo "<pre>"; print_r($pos); echo "</pre>"; } $templates[$folder][$type] = & $positions; } return $templates[$folder][$type]; }

This will print:

folder: hotels, type: items
Quering field in positions...
AND THEN the template position and the field names

Test do you see your fields in their positions?

Regards


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star review. Thanks!
The topic has been locked.
More
14 years 6 months ago #17981 by kursus
Replied by kursus on topic FlexiContent from SVN
What I got :

folder: accueil, type: items
Quering field in positions...


And get the same message with

1. uncomment the lines 104-116
2. comment out the line 104
3. and insert line (just after 104):
$always_create_fields_display = 1;


(which makes fields appear normally).
The topic has been locked.
More
14 years 6 months ago #17982 by ggppdk
Replied by ggppdk on topic FlexiContent from SVN
So you did not have other output the field names were not printed?


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star review. Thanks!
The topic has been locked.
More
14 years 6 months ago #17983 by kursus
Replied by kursus on topic FlexiContent from SVN
They were not printed indeed, the message I wrote was all I got.
The topic has been locked.
More
14 years 6 months ago #17984 by ggppdk
Replied by ggppdk on topic FlexiContent from SVN
Please goto phpmyadmin and export to SQL (zip)
the table:
jos_flexicontent_templates

and attach it here.

i dont think it is a privacy problem is contains only names ...


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star review. Thanks!
The topic has been locked.
More
14 years 6 months ago #17985 by kursus
Replied by kursus on topic FlexiContent from SVN
Yeah no worries, again it's ok to send you the whole site, just tell me ?
The topic has been locked.
More
14 years 6 months ago #17986 by ggppdk
Replied by ggppdk on topic FlexiContent from SVN
Just this table ...
:)


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star review. Thanks!
The topic has been locked.
More
14 years 6 months ago #17987 by kursus
Replied by kursus on topic FlexiContent from SVN
Here it is.
The topic has been locked.
More
14 years 6 months ago #17989 by ggppdk
Replied by ggppdk on topic FlexiContent from SVN
Kursus, the configuration for your custom template is gone, IT IS NOT there
There is no configuration for the template "accueil"
Please open items configuration for your template "accueil" and put the fields in the positions, AND save , after this check with UNMODIFIED files if it works.


I think the upgrade delete and recreated the table or something , I must check

Please tell me from what version you upgraded from 1.5.4 or 1.5.5 ???

Regards


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star review. Thanks!
The topic has been locked.
More
14 years 6 months ago #17991 by kursus
Replied by kursus on topic FlexiContent from SVN
The update was from 1.5.5

I checked the sql table of the working (1.5.5) version and it is exactly the same, and fields are displayed.

I didn"t create my templates the standard way, the only file I created was the item.php.
Is this related ?

I doubt it because :
- I works well with 1.5.5
- I doesn"t work on 1.5.6 with default template.
The topic has been locked.
Moderators: vistamediajoomlacornerggppdk
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline
Save