<?xml version='1.0' encoding='UTF-8'?>
<rss version='2.0'>
	<channel>
		<title>cotonti.com : Can I use structure for a plugin?</title>
		<link>https://www.cotonti.com</link>
		<description>Son konu mesajları</description>
		<generator>Cotonti</generator>
		<language>en</language>
		<pubDate>Tue, 14 Apr 2026 06:08:42 -0000</pubDate>

		<item>
			<title>GHengeveld</title>
			<description><![CDATA[<p>
	If you want to streamline development and PHP 5.3 is available, you could consider using <a href="https://github.com/GHengeveld/cot-factory" rel="nofollow">cot-factory</a> with <a href="https://github.com/GHengeveld/cot-factory/wiki/ORM" rel="nofollow">CotORM</a>.</p>
]]></description>
			<pubDate>Çrş, 05 Eyl 2012 20:45:32 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/tr/forums?m=posts&q=7083&d=0#post35373]]></link>
		</item>
		<item>
			<title>Klaestrup</title>
			<description><![CDATA[<p>
	OK, I will give it a try!</p>
]]></description>
			<pubDate>Çrş, 05 Eyl 2012 18:54:03 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/tr/forums?m=posts&q=7083&d=0#post35369]]></link>
		</item>
		<item>
			<title>Trustmaster</title>
			<description><![CDATA[<p>
	Then I'd go for a custom module. Comments have the API to be connected to anything, so not a big problem.</p>
]]></description>
			<pubDate>Çrş, 05 Eyl 2012 16:32:56 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/tr/forums?m=posts&q=7083&d=0#post35367]]></link>
		</item>
		<item>
			<title>Klaestrup</title>
			<description><![CDATA[<p>
	Yes, the log shall be categorized. Actually I don't think the entries will have a title at all (so no unique page title), but a ID, a repair/problem description and action taken, and to choose status (Not fixed / Fixed etc.).</p>
<p>
	No markup, just plain text fields.</p>
<p>
	The ability to write comments would be good, so others can help with a unfixed problem.</p>
]]></description>
			<pubDate>Çrş, 05 Eyl 2012 14:03:27 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/tr/forums?m=posts&q=7083&d=0#post35365]]></link>
		</item>
		<item>
			<title>Trustmaster</title>
			<description><![CDATA[<p>
	Are log entries categorized?</p>
<p>
	If you need to decide whether to use pages or custom database tables, here are helper questions:</p>
<ul><li>
		Is there a free-form text with markup?</li>
	<li>
		Does each entry have a unique title?</li>
	<li>
		Are the entries categorized as a tree?</li>
	<li>
		Do you want to connect comments or other page-specific plugins to each entry?</li>
</ul><p>
	If all 4 answers were yes, then you should better use pages + extra fields. If you answered no to most questions, especially the first two, then you'd better create your own data model.</p>
]]></description>
			<pubDate>Çrş, 05 Eyl 2012 13:49:49 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/tr/forums?m=posts&q=7083&d=0#post35364]]></link>
		</item>
		<item>
			<title>Klaestrup</title>
			<description><![CDATA[<p>
	I will make a repair log, where the technician can create a observasation or a repair. I don't know exactly what info I need in the registrations, but I think it will include some checkboxes, dropdowns and textarea, maybe the possibility for others to post comments. I'm not sure if I can use pages for this type of task, or what will you prefer???</p>
]]></description>
			<pubDate>Çrş, 05 Eyl 2012 13:36:23 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/tr/forums?m=posts&q=7083&d=0#post35362]]></link>
		</item>
		<item>
			<title>Trustmaster</title>
			<description><![CDATA[<p>
	Structure is where we can draw the line between modules and plugins: modules can define their own structure, plugins use the structure of existing modules. Technically this limitation is not so strict and you might be able to do that in a plugin, but still it is recommended to make a module instead.</p>
<p>
	As an example, see how Forums module tells the system that it wants its own structure: <a href="https://github.com/Cotonti/Cotonti/blob/master/modules/forums/forums.structure.php" rel="nofollow">forums.structure.php</a>. That file registers it in Administration / Structure section. To use structure of your module in the module's code, just use the global:</p>
<pre class="brush:php;">
$structure['module_code']['category_code']</pre>
<p>
	 </p>
]]></description>
			<pubDate>Çrş, 05 Eyl 2012 09:03:05 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/tr/forums?m=posts&q=7083&d=0#post35356]]></link>
		</item>
		<item>
			<title>diablo</title>
			<description><![CDATA[<p>
	what exactly are you gonna do with this plugin? you can use the page structure for almost anything.</p>
]]></description>
			<pubDate>Sal, 04 Eyl 2012 22:05:08 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/tr/forums?m=posts&q=7083&d=0#post35355]]></link>
		</item>
		<item>
			<title>Klaestrup</title>
			<description><![CDATA[<p>
	First I have to say, that Cotonti is so awesome, nice, clean and flexible...! <img alt="smiley" height="20" src="http://www.cotonti.com/plugins/ckeditor/lib/plugins/smiley/images/regular_smile.gif" title="smiley" width="20" /></p>
<p>
	I want to use structure/categories in a plugin. Is this possible, or do I have to make a module to use the structure function?</p>
]]></description>
			<pubDate>Sal, 04 Eyl 2012 20:03:32 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/tr/forums?m=posts&q=7083&d=0#post35353]]></link>
		</item>
	</channel>
</rss>