highlightings

  •  ·  Standard
  • 2 friends
  • 2 followers
  • 967 views
·
Added a discussion

The modules Marketplace has location field. I have added few items. Now I am trying to have the following

  • A page for each country, listing the items from that country.

For example - page-US : items from US , page-France - Items from France.

I use the following macro in a page block to list items from US. This works and lists items from US.

~system:keyword_search:TemplServices["bx_market", {"meta_type": "location_country", "keyword": "US"}, "unit.html"]~

But how can I avoid manually creating 100's of pages for each of the countries ? Because later I want to create separate pages for the city etc...

  • Is it possible for the macros to take parameters from the url ? For example - mysite/country=france that can then be passed to the macro ?
  • Is there a better way to achieve this ?
  • Also now the marketplace location is being displayed as Map. How can I display the Address field directly (together with the map view). I want each field in the address (postal code, Country, city) etc clickable so the user can go to the corresponding page. Say uer clicks the city and it will take to the city page that lists every item from that city.

I hope I am missing something here and UNA as a framework supports this. Thank you for the help.

  • 644
  • 1
·
Added a discussion

When we say a website is multi-lingual it means users are able to view the website in any of the supported language as long as a translation is available for that page. So a French visitor will be able to chose French and see everything in French. This is not restricted to the site buttons, titles and forms. This should also include any the content, its descriptions, categories, tags etc. There should be a way for the Site admin / editor to provide translation to any / all of the content, blocks etc .

In that sense UNACMS is not a TRUE multi-language CMS currently. It only allows translating the User interfaces and few custom texts using the polyglot module.

The user content (Posts, Groups, tags, Albums etc) are not multi-language. Users coming from a different locale will can only view the original language. Content creators / Admins have no way to include a translation for any content

So if a norml user creates a post on "Mobile Phone", there is no way to provide "teléfono móvil" and "điện thoại di động" to the Spanish and vietnamese user even if the content creator wants to do that.

Exception seems to be only the WIKI module where content translation can be added. But it still is incomplete as only one field is translatable.

Hope future versions of UNA can be multi-lingual in the TRUE sense.

Reference (Unfortunately I cannot post links.)

  • From Drupal, Follow the following link from drupal.org - docs/user_guide/en/language-content-translate.html.
  • or can view the Youtube video - id "TOalcUYD5zM". (remove the quotes and paste it in youtube url
  • 528
·
Added a discussion

Hi UNA community..

Hope someone can provide me some suggestion on how to handle this better in UNA.

I am setting up a community for UpCycling where members share and discuss videos and posts on how to re-use some of the waste items (say, plastic bottle reused as garden items , glass bottles re-purposed as decoration etc.). Now I hit a roadblock trying to categorize the content.

I want to categorise content according to the following .

  1. Categorize according to Skill level required to upcycle the item - Beginner, Intermeidate, advanced, expert
  2. Categorize according to Materials - Plastic, wood, glass, paper, cloth etc.
  3. Categorization according to Project Type / Item: - Furniture , fashion, Toys, Garden

A user should be able to find a single post that matches all the THREE categories above - "Beginner friendly" + "Plastic" + "Toy".

Labels have a condition of OR...

Thank you in advance.

  • 582
  • 1
·
Added a discussion

Would be great to have this available where we can search and link to related content from the Edit form.

Say I create a post about a gadget, I can link to other gadgets similar to it. Or Groups that are related.

Hashtags, categories won't solve this. Because when you read the post after a few months, the label will be populated with more gadgets that might be only vaguely related to the item.

  • 678
  • 1
·
Added a discussion

I am just trying to use the APIs to do the initial setup and hitting few speed bumps..

  1. How to add labels using API ? I could only find service "serviceGetLabels". I am trying to create groups using the API, so far Ok, but I am not able to find the correct variables for adding labels.
  2. How to find the id of different entities. For example
bx_srv('system', 'update', ["bx_posts", 123, ["title" => "new title"]], 'TemplServiceContent');

Here the id 123. How can I find the correct id of the item ? Say I need categories of group.. Is there an API to return this, or any way to get it from Studio ?

  • 630
  • 2
·
Added a discussion

So I am trying to add text for my language using the "Developer module" > PolyGlot > "Add keys".

In the Developer module > Polyglot

  • Selects my language,
  • Category > Groups
  • Keys:
  • <string name="_bx_groups"><![CDATA[ഗ്രൂപ്പുകൾ]]></string>
  • <string name="_bx_groups_cmts"><![CDATA[ഗ്രൂപ്പുകളുടെ അഭിപ്രായങ്ങൾ]]></string>
  • Checks "Force replace if exists".

A popup is seen "2 Keys are added"

CLicked "Recompile all" button and also "Recompile" icon near the language too..

But when I go the polyglot module and groups, I do not see these keys. They still contain only English.

Cleared cache (just in case).. and still no change.

Are there any additional steps / settings required.. ?

  • 622
  • 1
·
Added a discussion

Hello UNA team, Few questions related to Labels, Categories and Hashtags.

  1. Translation for Labels- Is this possible ? While I can see translation options for different data items including "Post Categories", I could not find a way to add translation for "Labels". Is it possible ? So if I have a label as "Fruits", I want to add the translation similar to how we add translation for Category.
  2. Editing a channel - I can see the form settings inside studio for editing a channel. But how to edit a real channel ? Opening the channel page does not show any edit option (I can see "Delete channel", "report channel" etc in drop down. But no edit option).
  3. Adding custom fields to Channel - I managed to add custom field to channel forms. And enabled this field in "Add channel", "Edit channel" and "view channel" forms. But how do I create channel in a way to see this form ? Its either labels or hashtags that creates a channel. Now Labels form does not show this custom field.. Basically I want to add a description to the channel (Eg, channels like Fruits , vegetables can have its own descriptions.. )
  4. I managed to add "Location field" to channels using the Developer module. Since developer module was required to add this field, are there any potential shortcomings in terms of security and performance in doing so ?

Hope I am not going in an entirely wrong direction ?

And thank you very much in advance..

  • 663
  • 1
·
Added a discussion

I want to show latest public items on the front page even for Anonymous users. Adding blocks only works for Logged in user.

Steps:

  1. I created a test site with Spacenook 14.0.
  2. The user NebulaNerd has posts with Audience "Public".
  3. I added the below blocks to Home page (nothing changed in the block settings. Just added them to the page)
  • All Feeds (Timeline) - Timeline • Visible for Anyone,
  • All Feeds (Outline) - Timeline • Visible for Anyone
  • Public Feed (Timeline) - Timeline • Visible for Anyone

Observations:

  • When NebulaNerd is logged in, can view these posts at the corresponding blocks.
  • It does not work for Anonymous users. I can only see the log-in form on the home page.
  • Added note - But Anonymous user can view the content using a direct link to the content.

Expectation:

  • If a content is published for Audience "Public" , then the blocks "All Feeds" or "Public Feeds" should show the public content. Specially when the block is set "visible for anyone".

Are these the correct blocks ? Or Am I missing something in the configuration.

image_transcoder.php?o=sys_images_editor&h=2715&dpx=2&t=1749324132

EDIT - EDITED THE Title so people facing this issue can find it easier.

  • 650
  • 1
·
Added a discussion

I am trying to create a custom translation following the Russian module. So far good.

But there at location russian/install/langs there is a file "en.xml". Should this be "ru.xml" ?

Inside github (unfortunately I cannot post link) - unacms/una/tree/master/modules/boonex/russian/install/langs

  • 763
  • 1