Changing placement of fields in print template

More
8 years 9 months ago - 8 years 9 months ago #59924 by agnesch
Hello,

I'm not an expert here, but I would like to create a new CSS file so as to control the print output of FC items.

As you can see from the attachment , my specific need is to know what elements and classes to edit so as to change the placement of the gallery field from underneath the main image to the right of the main image, above the top area of the FC default template.

How can I do this?

Thank you in advance!

This message contains confidential information
Attachments:
Last edit: 8 years 9 months ago by agnesch.

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

More
8 years 9 months ago - 8 years 9 months ago #59928 by ggppdk
Hello

it can be done by adding the layout (=template name) to the URL

category / multi-item views
&clayout=my_print_tmpl_1

or item view:
&ilayout=my_print_tmpl_1

and then you can edit the item and category layouts of template with name "my_print_tmpl_1" and place fields appropriately

- but currently there is no option for it in type configuration or in category view configuration for specifying a different layout for printing
IT IS LITTLE work to add, but many things are little work, and further more there is always risk of breaking things
you can submit issue in Github:
github.com/FLEXIcontent/flexicontent-cck

it will be accepted for some future version

currently:
you can edit item.php and category_items.php
and if URL variable print is set you can do things differently


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

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

More
8 years 9 months ago - 8 years 9 months ago #59929 by agnesch
Dear ggppdk,

thank you for the quick reply and for the help.

it can be done by adding the layout (=template name) to the URL

category / multi-item views
&clayout=my_print_tmpl_1

or item view:
&ilayout=my_print_tmpl_1

and then you can edit the item and category layouts of template with name "my_print_tmpl_1" and place fields appropriately


I have duplicated the template I used for the product page, which was called "default-prodotto", and named it "default-prodotto-print". Then updated the fields that I would like to appear in the print page and positioned them accordingly.
I then cleared the backend and browser cache and went to the url of the product page.
I added ?ilayout=default-prodotto-print at the end of the url of the product page and hit search, and the new template for the product shows up. Thanks!

- but currently there is no option for it in type configuration or in category view configuration for specifying a different layout for printing
IT IS LITTLE work to add, but many things are little work, and further more there is always risk of breaking things
you can submit issue in Github:
github.com/FLEXIcontent/flexicontent-cck

it will be accepted for some future version


Thank you for the suggestion, I'll post the improvement in Github.

currently:
you can edit item.php and category_items.php
and if URL variable print is set you can do things differently


I'm afraid I have not understood this last part of the instructions... :oops:

Thank you!!!
Last edit: 8 years 9 months ago by agnesch.

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

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