Vertically Align the Item Title on Default Category Template

More
5 years 11 months ago #27145 by jeffhoneyager
When the items are displayed in a category using the Default category template the "Item Title" is vertically aligned "center." While the other fields are aligned top.

To align the Item Title vertically top, do the following:

Edit this file

components/com_flexicontent/templates/default/category_items.php

Around line 107 the line is:

<th scope="row" class="table-titles">

Change it to:

<th scope="row" class="table-titles" valign="top">

Hope this helps someone.

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

More
5 years 11 months ago #27161 by micker
thanks for tips

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
5 years 11 months ago #27168 by Rooney

jeffhoneyager wrote: <th scope="row" class="table-titles">

Change it to:

<th scope="row" class="table-titles" valign="top">


Why do you hardcode it? Just use the css class for modifications!

Rooney

Joomla 3.7.6, 3.2.1.14-rc

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

More
5 years 11 months ago #27183 by jeffhoneyager
It is a matter of preference.

Why do you CSS it? Just change the code for modifications!

:D

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

More
5 years 11 months ago #27186 by Rooney
Well, there are two ends of the stick. For our new homepage we created a FC template that has nothing to do with one of the standard FC templates anymore. We even disabled the item and category css files to avoid unnecessary file load. We deleted all code for example for the printing buttons (we have an own print css) or other functions we don't need. Actually we created our own template using FC as kind of a framework and if there are updates to the standard templates we don't care.

On other end of the stick are users that more or less just copy the standard templates (if so at all) and if an update for the standard templates comes all changes are gone.

To cut a long story short, I believe that is better for site maintenance if code is not hacked if not needed. And in your case there is no code hacking needed because there is a css class available for changing the design.

Rooney

Joomla 3.7.6, 3.2.1.14-rc

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

More
5 years 11 months ago #27199 by ggppdk
Just a note, changes to the templates are finalized
except for :

- some changes need to properly apply pagination STYLING (css) of standard joomla templates

- also a small number content plugins add content before/after title and after description, in J2.5 the event names are wrong, but i think i ll do this change ONLY in view.html.php file to avoid changing the templates


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

Moderators: vistamediajoomlacornerggppdk
© 2018 Flexicontent. All Rights Reserved.