(Solved) Default title on new item form...how?

More
10 years 10 months ago #48710 by alitogata
tried but still the same, it cuts the code as before :?

maybe it's me doing something wrong.

haven't done the addition in index.php and language string but i don't think it's that, right?

FLEXIcontent v3.1.0-rc2
Joomla! 3.6.2

Please Log in or Create an account to join the conversation.

More
10 years 10 months ago #48717 by ggppdk
Hello

hhmm just use the original text without the \

and apply this fix to file
administrator/components/com_flexicontent/models/type.php

Replace:
Code:
// Build attibutes INI string if (is_array($attibutes)) { $txt = array (); foreach ($attibutes as $k => $v) { if (is_array($v)) { $v = implode('|', $v); } $txt[] = "$k=$v"; } $type->attribs = implode("\n", $txt); }

with:
Code:
// Build attibutes INI string if (FLEXI_J16GE) { // JSON encoding allows to use new lines etc $type->attribs = json_encode($attibutes); } else { if (is_array($attibutes)) { $txt = array (); foreach ($attibutes as $k => $v) { if (is_array($v)) { $v = implode('|', $v); } $txt[] = "$k=$v"; } $type->attribs = implode("\n", $txt); } }


otherwise you can wait for next public packange


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

Please Log in or Create an account to join the conversation.

More
10 years 10 months ago #48718 by alitogata
YAY!!! It worked with this!

Thank you very very very much! :)

FLEXIcontent v3.1.0-rc2
Joomla! 3.6.2

Please Log in or Create an account to join the conversation.

More
10 years 10 months ago #48719 by ggppdk
Hello

bug fix for type parameters saving new lines will be in next release

did you also test the language string code ?


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

Please Log in or Create an account to join the conversation.

More
10 years 10 months ago #48720 by alitogata
will test that too when I find out which index.php to change :oops:

FLEXIcontent v3.1.0-rc2
Joomla! 3.6.2

Please Log in or Create an account to join the conversation.

More
10 years 10 months ago #48721 by ggppdk
Hello

you can add it at the bottom

of your

templates/MyJoomlaTemplate/index.php

(backup file)

be careful to place it after this has opended (start of PHP code)
<?php

and
before this (end of PHP code):
?>

but you can place it also inside any PHP file that gets loaded ...

this is only if you need language strings, otherwise forget about it


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

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.359 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