Change the view of the category page

  • Posts: 68
  • Thank you received: 0
10 years 2 months ago #140326

Hi,

is there any possibility to change the view of the category page?
I would like to put at first products and under them the text in category.

Could you help me?

Best regards

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

  • Posts: 12953
  • Thank you received: 1778
10 years 2 months ago #140348

Hi,
I didn't fully understood what you really want to do, can you give me more information about what you want to do through some screenshots for example ?

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

  • Posts: 68
  • Thank you received: 0
10 years 2 months ago #140354

Here is the picture of the category page.

There is text and that product.
I would like to have at fist products and the text on the bootom of the page.

Attachments:

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

  • Posts: 81509
  • Thank you received: 13064
  • MODERATOR
10 years 2 months ago #140397

Edit the file "listing" of the view "category" via the menu Display>Views
And move the code

<?php echo JHTML::_('content.prepare',$this->element->category_description); ?>
at the end.

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

  • Posts: 68
  • Thank you received: 0
10 years 2 months ago #140412

Thanks for help.

But I think correction must be done in "product listing". On the picture is page with products and it is one category.
I tried it and it works perfectly.

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

  • Posts: 68
  • Thank you received: 0
10 years 2 months ago #140427

Still one question.

Is there any possibility to divide description and part keep above products and part under them.
Is it possible to use the tag "read more" and respectively how?

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

  • Posts: 81509
  • Thank you received: 13064
  • MODERATOR
10 years 2 months ago #140434

You need to create a custom category field and add some code to the same view like that:
<?php echo $this->element->CUSTOM_FIELD; ?>
where CUSTOM_FIELD is the column name of the field.

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

  • Posts: 68
  • Thank you received: 0
10 years 2 months ago #140453

Thanks a lot. I will try it. If there I see some problem, I will still contact you.

Many thanks to you and to whole team for your perfect support and help.

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

  • Posts: 8
  • Thank you received: 0
5 years 7 months ago #297589

I managed to create a custom category field. The idea is to have a second text field at the bottom of the page, just like the topic starter mentioned. The only issue i am facing is that the text in this custom field is not responsive. It seems to be a css problem? Could you help me out? To be specific: the text i entered in the custom field displays at one line.

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

  • Posts: 4508
  • Thank you received: 610
  • MODERATOR
5 years 7 months ago #297600

Hello,

As we are unable to know what will be enter in a custom field (Text, image, or else) you can imagine that we can anticipate this by using Css command.
So, if required you have to add css command like on this css reference must do the trick.
Regards

Last edit: 5 years 7 months ago by Philip.

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

Time to create page: 0.105 seconds
Powered by Kunena Forum