category display

More
5 years 8 months ago #30098 by rottenberg
category display was created by rottenberg
hello,
I search how to display more than one article in a row.

I'm working on a libray project.
To classify the books I have the following categories :
- book
-> children book
-> comics
-> Novels
-> studies and surveys
-> ... some others categories

Each book may be classified in one or more categories (no problem for that I use main categories and secondary categories)

My problem is the following : I want to show more than one article (one book = one category) on each row in the category display.

For the moment I get only 1 book by row.

Is it possible to get 3 or 4 colums to show the articles of the category

thank's for help
best regards

Michel

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

More
5 years 8 months ago #30100 by ggppdk
Replied by ggppdk on topic category display
effectively you have a category view and you want a template that has a category layout that

1. places items horizontally in multiple rows per subcategory ??
2. places some items of current category horizontally in multiple rows and then folds to next row?


-- 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 review. Thanks!

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

More
5 years 8 months ago #30101 by rottenberg
Replied by rottenberg on topic category display
I need only the second part :
to place horizontally for the current category the photo and under some fields like the title of the book and the author.

when there no more room to show an article in the row he goes directly to next row.


I don't need categroy and subcategory. Each categrory will be called by a menu record.

to summarize, I would like to get the same presentation as in an E-commerce category page 3 or 4 articles by row

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

More
5 years 8 months ago #30102 by ggppdk
Replied by ggppdk on topic category display
Such a template layout is not included in FLEXIcontent built-in templates,

you will have to duplicate an existing template and change to have the desired result, or have someone develop it for you

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 review. Thanks!

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

More
5 years 8 months ago #30103 by rottenberg
Replied by rottenberg on topic category display
thank you

I have found the blog template.
It suits me with one exception. I don't want to show the description field in this template. I 'm trying to found how to do it with category parameters (I have pout len tgth = 0 in lenght of introtext. it doesn't work. if I don't succeed I will have a look in the php file.

best regards

Michel

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

More
5 years 8 months ago #30109 by ggppdk
Replied by ggppdk on topic category display
Duplicate blog template to e.g. blog_1

and then edit category items to change lines:
FlexicontentFields::getFieldDisplay($items[$i], 'text', $values=null, $method='display');
if ($this->params->get('lead_strip_html', 1)) :
echo flexicontent_html::striptagsandcut( $items[$i]->fields['text']->display, $this->params->get('lead_cut_text', 400) );
else :
echo $items[$i]->fields['text']->display;
endif;
to (add /* at beginning and */ at the end)

also you may want to comment out the HTML paragraph tags, thus change:
<p> and </p> to
<!--p> and </p-->


-- 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 review. Thanks!

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

More
5 years 8 months ago #30115 by rottenberg
Replied by rottenberg on topic category display
thank you very much.

I dit it in the category_items_html5.php file at 2 places (for intro text and for intro_strip.html and for lead_strip.html texts.

It's working great now.

would it be possible in a future version to activate the value 0 as no intro text in the layout category configuration for intro lead text and lead articles. this would avoid to modify the template from the standard blog one.

best regards

Michel

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

Moderators: vistamediajoomlacornerggppdk
© 2018 Flexicontent. All Rights Reserved.