Keyword

Extra Fields Multi-Select List format

More
11 years 4 months ago #114323 by roger
Is it possible to display the items in the Extra Fields Multi-select list in rows rather than in a line:
For example:

My article displays
Additional Info
Amenities: Bar, Bistro, Gymnasium, Health Club, Swimming pool, Restaurant

Is it possible for it to be displayed as:
Additional Info
Amenities: Bar
Bistro
Gymnasium
Health Club
etc

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
11 years 4 months ago #114324 by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: Extra Fields Multi-Select List format
Hello roger,

It depends on how your template renders this list on the backend. It is possible that is a <ul> element so setting a float: none; and display: block; on your <li> items will do the trick.

Ps. If you require any further assistance please provide a link.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

  • Mohamed Abdelaziz
  • Mohamed Abdelaziz's Avatar
  • Offline
  • Platinum Member
  • Joomla Developer
More
11 years 4 months ago #114325 by Mohamed Abdelaziz
Replied by Mohamed Abdelaziz on topic Re: Extra Fields Multi-Select List format
Hi Roger,

If you display this field by alias, then you can use this code snippet to achieve your goal:
<?php echo str_replace(",", "<br/>", $this->item->extraFields->fieldAlias->value) ;?>

Multiple Extra Fields Groups for K2
AutoMeta for K2
Chained Fields for K2
More K2 Extensions In My Extensions Store

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


Powered by Kunena Forum