8 years ago
Topic

Hi everyone,

I am trying to discover SEBLOD, I like it! Of course I have some issues...

1) I followed different tuto and manuals to create relationship between content but I don't find the field in my field type. I use a SEBLOD french version so maybe I made the wrong translation... So I missed something in the field type or the related field has been removed ?

2) I would to change the related field by a select dynamic field who display one choise of all the articles in the categorie choosen. The articles was displayed in the dynamic select but I would like that the articles displayed belong only to the current user. I have tried with live values and restrictions but it didn't work.

Help please for a SEBLOD newbie !

Get a Book for SEBLOD
4229 Posts
Kadministrator
8 years ago
0
Level 1

It is called Joomla Article field and is not included in the core since Seblod 3.8., you need to install it separately (it is free) 

http://www.seblod.com/store/extensions/40326

In select dynamic query you can use syntax:

  • $user->property (replace property with desired property name, id in your case) and
  • $uri->getValue('some_variable'), in your case this would be something like$uri->getValue('catid') if category id is present in the url as catid value.

8 years ago
0
Level 1

Thank you!

It works almost like I would. In the dynamic select there are displaying all the user's article and I would just the user's article of a specific categorie (catid = 10).

In the option value I tried to put id and catid but it didn't work there were all the user's articles.

4229 Posts
Kadministrator
8 years ago
0
Level 1

You need to actually have category id in the url to be able to use it dynamically . If this is a fixed id just add it the query where statement e.g. WHERE catid=10

8 years ago
1
Level 1

Hi,

Thank you for your answer. I wrote this query and it work well :

SELECT title FROM #__content WHERE catid=10 AND created_by=$user->id

I use the AND to complete the WHERE on the catid.

I hope it will help somebody in hurt like I was.

1283 Posts
Bucklash
8 years ago
0
Level 2

Hi

Thanks for posting your code.

Stuff like that will indeed help people greatly.

Hopefully others will post succesful code too ;)

Kudos

Bucklash

Get a Book for SEBLOD