Title before image in FLEXIcontent - Universal Content

More
7 years 8 months ago #67021 by lipatovroman
Hi!
FLEXIcontent - Universal Content displays Title after image.

Even I place block <!-- BOF current item's title -->
before image in template.

I found that if I delete the code
Code:
<?php $captured_title = ob_get_clean(); $hasTitle = (boolean) trim($captured_title); ?>

title displays before image.

What this code doing?

Is there other way to place Title before image?
Thanks.

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

More
7 years 8 months ago #67023 by lipatovroman
Ok, I got it.
There is setting for that:



But I duplicated and renamed news template and placed it in my template/html folder.

Now this setting does nor work.

May be I not correct duplicated template?

I duplicated news template and renamed all files with name News to my own name. Is that correct?

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

More
7 years 8 months ago #67024 by ggppdk
Hello

you should be able to do this without a custom layout file ,
but if you want to do this by editting the layout file, then no need to remove that line

Instead

Try to move:
Code:
<?php echo $captured_title; ?>
before:
Code:
<?php echo $content_layout_feat!=2 ? $captured_image : '';?>
or before:
Code:
<?php echo $content_layout_feat==2 ? $captured_image : '';?>



and then again
Try to move:
Code:
<?php echo $captured_title; ?>
before:
Code:
<?php echo $content_layout!=2 ? $captured_image : '';?>
or before:
Code:
<?php echo $content_layout==2 ? $captured_image : '';?>


-- 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
7 years 8 months ago #67025 by lipatovroman
Why this settings



Does not work for my own duplicated template?

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

More
7 years 8 months ago - 7 years 8 months ago #67028 by ggppdk
Hello

This setting depends on CSS

Probably it does not work,
because you kept (inside the PHP file) the class "news" of the originally copied layout 'news'

You should either keep the "news" CSS class inside both the PHP file and the CSS file
(in this case you must not load 2 universal flexicontent modules inside same page, (1 with 'news' and 1 with 'hotdeal')
because the CSS of the last module to load will override the other

better rename 'news' in both PHP and the CSS files to: 'hotdeal'

hotdeal.php
hotdeal/hotdeal.csss


-- 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...
Last edit: 7 years 8 months ago by ggppdk.

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

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