Jump to content
Sign in to follow this  
ArtcoInc

Category Description - Phoenix

Recommended Posts

On my Category page(s), I include a lot of information. Text, pictures, links, etc. Several things I have noticed:

1) The Category Description is HTML text. But, there are limits to what HTML code one can include. I *used* to be able to use a <br/> to add a line feed, but it doesn't work now in Phoenix. Does anyone know how to add a line feed in Phoenix?

I have the Category Images add-on installed, which shows the Categories as small boxes on the home (index.php) page. While I was able to get some page formatting (ie: line breaks) of the Category Description by wrapping blocks of text in <div></div>'s and using <div class="clearfix">, it completely messed up the home page! So, this is not an option.

2) To display an image in the Category Description, I must include the actual image dimensions (width="xxx" height="xxx") (or some multiple of the actual image dimensions), otherwise the image is scaled to fit (ie: it is stretched to fill the width). Also, I must include class="img-fluid" in order for the image to be responsive (in BS3, it used to be class="img-responsive").

3) While it should be no surprise, one can not include PHP code in the Category Description.

TIA

Malcolm


Get the latest Responsive osCommerce CE (community edition) here .

Share this post


Link to post
Share on other sites

@ArtcoInc For Category Description instead of <br/>, we wrapped each line in a div which seems to work - yes, the whole img-fluid is weird - we limited upper size with user.css .img-fluid {max-width: 200px; max-height: 200px;} which seems to work - cornishhoney.co.uk

Share this post


Link to post
Share on other sites
44 minutes ago, ArtcoInc said:

1) The Category Description is HTML text. But, there are limits to what HTML code one can include. I *used* to be able to use a <br/> to add a line feed, but it doesn't work now in Phoenix. Does anyone know how to add a line feed in Phoenix?

Not sure I fully understand your problem but just added 3 <br/> to the first cat and worked fine, giving 3 lines.

image.png.b8c297c69704aa6b08a65fd60b107c01.png

discription works fine as well

image.png.dfddc7b8008f481c752762576cb5aee4.png

Edited by JcMagpie

 

Share this post


Link to post
Share on other sites
44 minutes ago, ArtcoInc said:

1) The Category Description is HTML text. But, there are limits to what HTML code one can include. I *used* to be able to use a <br/> to add a line feed, but it doesn't work now in Phoenix. Does anyone know how to add a line feed in Phoenix?

Assuming talking about this:

html_cat.jpg.c54d6a03184c61599c47b3295b60b1a2.jpg

HTML (any, there is no limit)...works well.  That display is:

<p>Fruit contains <b>many</b> nutrients and vitamins essential to health.  Eating fruit is an essential part of a healthy balanced diet.</p>

<dl class="row">
  <dt class="col-sm-3">Description lists</dt>
  <dd class="col-sm-9">A description list is perfect for defining terms.</dd>

  <dt class="col-sm-3">Euismod</dt>
  <dd class="col-sm-9">
    <p>Vestibulum id ligula porta felis euismod semper eget lacinia odio sem nec elit.</p>
    <p>Donec id elit non mi porta gravida at eget metus.</p>
  </dd>
</dl>

<div class="w-100"></div>

<img src="images/store_logo.png" class="img-thumbnail" width="300"><br><br>

 


This is a signature that appears on all my posts.  
IF YOU MAKE A POST REQUESTING HELP...please state the exact version
of osCommerce that you are using. THANKS

 
Get the latest Responsive osCommerce CE (community edition) here

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×