Image field above article header

More
14 years 3 months ago #9082 by collacocca
First thanx so much for this phantastic piece of software.

I have a little problem to place an image above the article header cause even the subtitle1 area is below buttons 'nd header.
The image has to be placed there to give printouts a CI conform layout.
And now after playing around for a while I seem to get lost… :?:

Any help or idea?

TIA

Somewhere over the drain flows…

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

More
14 years 3 months ago #9083 by yopyop001
Hi,

You can modify the item view of your template to add an area where you want.

To do this :

Edit the file : item.php of your template located in components/com_flexicontent/templates/template_name

And Add :
Code:
<!-- BOF your_position block --> <?php if (isset($this->item->positions['your_position'])) : ?> <div class="lineinfo your_position"> <?php foreach ($this->item->positions['your_position'] as $field) : ?> <span class="element"> <?php if ($field->label) : ?> <span class="label field_<?php echo $field->name; ?>"><?php echo $field->label; ?></span> <?php endif; ?> <span class="value field_<?php echo $field->name; ?>"><?php echo $field->display; ?></span> </span> <?php endforeach; ?> </div> <?php endif; ?> <!-- EOF your_position block -->
where you want.

And add in the file item.xml :
Code:
<group>your_position</group>
between
Code:
<fieldgroups>
and
Code:
</fieldgroups>

So, in the template manager, you will a new position where you can drag and drop your field.

I hope it will help you.

Regards

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

More
14 years 3 months ago #9085 by collacocca
Great - it works perfect!
Thank you guys and keep up the way you handle support questions!

Sunny afternoon -

Somewhere over the drain flows…

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

More
14 years 3 months ago #9222 by micker
hello please edit your post ad and [solved]
thanks

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
14 years 3 months ago #9312 by collacocca
Sorry guys - been away from my desk a couple of days

Alright - how to make the dreams of the CI/CD dragon come true -

we found out that instead of the original image that we would like to include
as a header logo directly above the article we got the mid-sized preview image.
That's a result of the way stuff is handled in the function 'onDisplayFieldValue…'
in 'joomla/plugin/flexicontent_fields/image.php

As we needed the original image located in the uploads dir we added a new path (#176) -
Code:
$path_imgOrig = JURI::base().DS.'components/com_flexicontent/uploads'.DS;

added a new var for the image source (#183) -
Code:
$srco = $path_imgOrig . $value['originalname'];

and replaced #191 -
Code:
$src = ($view == 'category') ? $srcs : $srcm;

with -
Code:
switch($view){ case 'category': $src = $srcs; break; case 'items': $src = $srco; break; default: $src = $srcm; }

to be prepared for the wotd.
Now we can deal with the different image versions just by linking 'em to the current view.
Yes - it is definitly q&d - an image version selector in the article editor would be fine.

So have a nice day…

Somewhere over the drain flows…

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

More
14 years 3 months ago #9352 by micker
cool great update ! can you post your update on feature and request forum to subjest on core modification ?
thanks

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