Try using custom templates ...

More
12 years 8 months ago #18052 by ggppdk
Because there have been some suggestions of custom field to do multiplication or something , i want to write this.

You don't have to use the default template of Flexicontent, if the template does not fit your needs.

It just an automated way to output your item data, but not obligatory to use it at ALL.

Just put fields you need in some template position (not important in which position since, we WILL IGNORE the position), and then make a COMPLETELY CUSTOM items.php file to output your item data:

<div class='label'><?= $this->fields->label; ?></div>
<div class='value'><?= $this->fields->display; ?></div>

<div class='label'><?= $this->fields->label; ?></div>
<div class='value'><?= $this->fields->display; ?</div>

<div class='label'>Total</div>
<div class='value'><?php
$multiply_result = floatval($this->fields->display) * intval(this->fields->display);
echo $multiply_result;
?></div>

Do whatever you need at the template, use preg_match , preg_replace, explode whatever to shape the result according to your needs, of course not everything can be done at the template, but a lot of stuff anyway.\

Also you don't have to completely scrap the template, if you are strong with css/html you can shape the positions according to your needs. The positions idea, is very good, no need to scrap it completely.

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

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

More
12 years 8 months ago #18075 by micker
great thing but we can apply a plugin intot this result not ?

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

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

More
12 years 8 months ago #18078 by ggppdk
Micker the:

$this->fields->display;

already contains the output of content plugins so you don't need to do anything, other than specify the triggering at the field configuration.

But some times YOU DO NOT WANT to enable plugin triggering in the field configuration, because you want to combine fields together.

E.G. You have 4 textarea fields, that you can combine with some html and then trigger a tab creating plugin ... To create tabs !!!!

THE BONUS is that the user when editing will see the tabs CONTENT seperated, so he / she will not be able to destroy the html code of the TABs !!!!!!!!!


-- 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
12 years 8 months ago #18089 by micker
great !

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

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

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.294 seconds
Save
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