link content to a page

View: New views
2 Messages — Rating Filter:   Alert me  

link content to a page

by Corrado Pizzi-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I'm trying to use the svn versionof thinkedit.
Yes yes,  I know it is not a stable released version, but I like dangerous experiences :-D. And I'm curious.
In the new version of thinkedit I noticed that "table" content are not more in the main content tree, which contains only pages.
The table contents instead are hidden, or showed in the main page by the configuration line

$data['table']['**********']['use']['main']='true';

I understood (tell me if I'm wrong) that to relate two contents in TE (shall I call Thinkedit TE for brevity? :-) )  I have to do it within TE itself, not in the database with foreign keys or similar methods.... ok. so if I try to relate a content to a page i get this alert:

[notice] te_link() : object is not a node or a filesystem, not yet supported. Most probably, you made a relation to a file or a content object instead of a node. Delete the relations you made to those. Or ask on Thinkedit mailing list in line 129 of file ******THINKEDIT_PATH*******\lib\thinkedit\template.lib.php

The message is clear. It sounds like "stop playing with unofficial version of thinkedit and be patient". Ok ok. But what will be the right mode (when il will be ready and supported, of course)  to relate two contents and/or to insert a content in the tree?



_______________________________________________
Thinkedit-user mailing list
Thinkedit-user@...
https://lists.berlios.de/mailman/listinfo/thinkedit-user

Re: link content to a page

by philippejadin :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Ah,  there are two undocumented things there :

- I renamed 'table' to a more general 'content' in config files in the dev. version. We work with content, not table if we look at it from the right angle. Tables are an implementation detail. We can define a "contact message" content type and choose to generate a contact form and only email it to someone (it won't be stored in a database table in this case). So I think that having $config['content']['contact_message'] is more logic than $config['table']['contact_message']


- In fact you can do any kind of relations within thinkedit :
- you can relate a node to another node
- you can relate a content to a node
- you can relate a node to a file
- etc ...
Technically it's a single many to many table storing everything to make it easier to newbies.

The problem is in the template tag, te_link() which doesn't know how to link to a content item from a node.

Difference between node and content :

A node is the "position" in the tree of a content item.

A content item is only content, which is not placed somewhere in the tree.

You can put your content in the tree (that's a node) multiple times, which is great for content reuse.

Because a content is not placed somewhere in the tree, te_link() doesn't know how to build an href  out of this content link.

I hope this makes sense...

This is the same system used in ez-publish, it is very well explained here  : http://ez.no/doc/ez_publish/technical_manual/3_8/concepts_and_basics/content_management/the_content_node_tree





On 11/30/06, Corrado Pizzi <c.pizzi@...> wrote:

> I'm trying to use the svn versionof thinkedit.
> Yes yes,  I know it is not a stable released version, but I like dangerous
> experiences :-D. And I'm curious.
> In the new version of thinkedit I noticed that "table" content are not more
> in the main content tree, which contains only pages.
> The table contents instead are hidden, or showed in the main page by the
> configuration line
>
> $data['table']['**********']['use']['main']='true';
>
> I understood (tell me if I'm wrong) that to relate two contents in TE (shall
> I call Thinkedit TE for brevity? :-) )  I have to do it within TE itself,
> not in the database with foreign keys or similar methods.... ok. so if I try
> to relate a content to a page i get this alert:
>
> [notice] te_link() : object is not a node or a filesystem, not yet
> supported. Most probably, you made a relation to a file or a content object
> instead of a node. Delete the relations you made to those. Or ask on
> Thinkedit mailing list in line 129 of file
> ******THINKEDIT_PATH*******\lib\thinkedit\template.lib.php
>
> The message is clear. It sounds like "stop playing with unofficial version
> of thinkedit and be patient". Ok ok. But what will be the right mode (when
> il will be ready and supported, of course)  to relate two contents and/or to
> insert a content in the tree?
>
>
>  
> _______________________________________________
> Thinkedit-user mailing list
> Thinkedit-user@...
> https://lists.berlios.de/mailman/listinfo/thinkedit-user
>
>
>


--
Philippe Jadin
Thinkedit, a flexible
data and content
management system :
http://www.thinkedit.org

_______________________________________________
Thinkedit-user mailing list
Thinkedit-user@...
https://lists.berlios.de/mailman/listinfo/thinkedit-user
LightInTheBox - Buy quality products at wholesale price