10 years ago
5
Topic
Hi
i create a new object type from joomla core article that contain a new field .
I use this object as an article so i create a link that go to one instance of the seblob object type.
When i read the code source of this link ( that let us view a "article " component ) i don't understand how is build the cck20 from the <id="cck20_mainbody"> ?
I don't find this motif in any php file locate root server directory of joomla .
Some php code source show cck->id but does this id value is 20 ?
If yes how can I view this vallue in the joomla BackEnd somewhere ?


regard's



Get a Book for SEBLOD
10 years ago
2
Level 1
Hi
i think this value is set in a cell of a column inside a table of a database but i d'ont know where at this time !

regard's
10 years ago
1
Level 2
OK i find it , cck_core take the value 20 from $_cck_core.id the id for seblod is then $_cck_core.pk .
do i write something wrong ?
regards
10 years ago
0
Level 3
20 is the id of the object type create usingseblod not the id of one of the instance of this type .

10 years ago
1
Level 1
Hi,

In the #__cck_core table, the 'id' column contains the id of the cck content and the 'pk' column the id of the Joomla object, in your case, the id of the Joomla! article linked to the cck content.

If you need to create a link on frontend to your content, it has to point to the Joomla! article id and not the cck id. The article will be loaded and Seblod will do the magic to load your fields.

Olivier
10 years ago
0
Level 2
Hi
i ll not think that is seblod behave like that ! so the url scheme is the same !! great
i really think seblod is a wonderfull tool but don't know if it can easely replace a object type create for a third component ?
As now documentation say that seblod support some component type not all new component !!!
For example if we instead create a new field for a default /third component , i create a seblod object type of this component ,
0 Does seblod is able to use the same table with a new column ?
1 Does seblod can redefine easely a component extension object type ?
2 Does CRUD ll work without need to add specific code for the table column = joomla fields ?
3 Do we need to add manually a new column in mysql or seblod do it for us ?
4 For add new column does the best is let seblod create this for us ?
5 Does it make sense when add a new column/field to use seblod object type instead the default way of joomla ?


regard's


Get a Book for SEBLOD