56 Posts
mrits
10 years ago
6
Topic

Hello,

how can i get the values art_id, art_title ... in siteform?

All values are set but i only get default values.

Is there a solution? 

Thanks 

Regards,

mrits

Get a Book for SEBLOD
693 Posts
rpoy
10 years ago
5
Level 1

Hi mrits,

What version of Joomla/SEBLOD are you using?

Im not sure I understand what you mean.  You can add the fields to the site form.  What do you mean by default values?

thanks,

Randy

56 Posts
mrits
10 years ago
4
Level 2

Hi Randy,

Joomla! 2.5.24

SEBLOD Version 3.3.6

1.I've created an AdminForm Fields (art_id, art_title, own_filed1(with a default value), own_field2 )

2. Then new Article with my new AdminForm

3. Create Menu Link to SiteForm and select my new Form type

Now i want to get the values from the article that I've created with AdminForm in the SIteForm

SiteForm has the same fields.

But the Field Values from the article :-S 

Hope you understand

PS: In the siteform i only get the default value from own_field1

Thanks

693 Posts
rpoy
10 years ago
3
Level 3

Hi mrits,

I think I understand, you are creating an article with your Content Type from the Admin Form (Back end). Then you need to allow a logged in user (Front End), to edit the same article using the Site Form of your Content Type.

The menu item that you created on the front end is to the Site Form. What this does is allow you to create new articles with your content type - not view them.

What you need is a menu item to list out the articles. If it is a single article, you can select the menu item under Articles.

You can either use one of the Joomla Article lists or create a SEBLOD List & Search Type to list out the articles of your content type. Once they are listed, then you can select the article and edit it in the Site Form.

hope that helps.

Randy

56 Posts
mrits
10 years ago
2
Level 4

Not really :-S 

It's a little bit tricky ;-)

It should be a form not a edit page of an existing article.

The User in the backend set up default values 

Example:

Field min_range

Field max_range

In Siteform is a field called length

Now i want to check with javascript, is the length that the user has filled in min_range and max_range 

length <= $cck->get('min_range')->value->from->articleId(50);

The form should be submitted. 

The "Admin" put the values in the article and not in Seblod.

Seblod is only for the superadmin :-)
And the Admin could edit values without knowledge of seblod. 

Hope it helps :-)

693 Posts
rpoy
10 years ago
1
Level 5

Hi mrits,

Ah OK! So one idea is to create a "Settings" Content Type with title, category, min_range,max_range etc. Then create an article with that content type named "settings"

In your Main_Content_Type, use a related article field with default to the "settings" article.

You can use the Developer to create a validation plugin which can look up the the values in the related article.

Hope that helps.

Randy

56 Posts
mrits
10 years ago
0
Level 6

Hi Randy,

thanks it's a lite bit clearer :-)

But i don't understand the related article field :-(

I only get the selected article id but not the values of the article :-S

I use my own template is something possible like:

echo $cck->getValue(articleid,'min_range'); 

Regards

mrits

Get a VIP membership