FlexiContent from SVN

More
13 years 10 months ago #17978 by ggppdk
Replied by ggppdk on topic FlexiContent from SVN
Please do this test:

1. Put the lines inside comments again.

2. In same file Comment out the line 354 (or 355):
if (!$params) return $items;

Test if it works

Regars


-- 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...
The topic has been locked.
More
13 years 10 months ago #17979 by kursus
Replied by kursus on topic FlexiContent from SVN
Doesn't work, sorry (just to make it clear it's line 365).

I've tried this with a file freshly copied from the svn archive to be sure I didn't mess it up with previous modifications.
The topic has been locked.
More
13 years 10 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...
The topic has been locked.
More
13 years 10 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
13 years 10 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...
The topic has been locked.
More
13 years 10 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.
Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.365 seconds
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