<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="http://fbb.just4test.de/extern.php?action=feed&amp;tid=4434&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Informationen für CMS/made simple / [Gelöst] Content ID zum Page Alias herausbekommen]]></title>
		<link>http://www.cmsmadesimple.de/forum/viewtopic.php?id=4434</link>
		<description><![CDATA[Die aktuellsten Beiträge in [Gelöst] Content ID zum Page Alias herausbekommen.]]></description>
		<lastBuildDate>Wed, 20 May 2015 13:02:16 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: [Gelöst] Content ID zum Page Alias herausbekommen]]></title>
			<link>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=35061#p35061</link>
			<description><![CDATA[<p>Jippi! Danke!</p><p>Ganz ehrlich: mit der Doku komm ich nicht zu recht. Danke dir / euch für die Hilfe.</p>]]></description>
			<author><![CDATA[dummy@example.com (antiheld2000)]]></author>
			<pubDate>Wed, 20 May 2015 13:02:16 +0000</pubDate>
			<guid>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=35061#p35061</guid>
		</item>
		<item>
			<title><![CDATA[Re: [Gelöst] Content ID zum Page Alias herausbekommen]]></title>
			<link>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=35060#p35060</link>
			<description><![CDATA[<div class="quotebox"><blockquote><div><p>Funzt leider nicht. Hab ich was vergessen?</p></div></blockquote></div><p>Ja: Erklären, was &quot;Funzt leider nicht&quot; <em>genau </em>bedeutet <img src="http://www.cmsmadesimple.de/forum/plugins/ezbbc/style/smilies/tongue.png" alt="tongue" /> </p><p>Aber an Deinem Code kann ich sehen, API-Doku lesen und verstehen ist auch so &#039;ne Sache&#160; <img src="http://www.cmsmadesimple.de/forum/plugins/ezbbc/style/smilies/tongue.png" alt="tongue" /> <br />Allerdings ... die alte Doku war zwar nicht aktuell, aber dafür übersichtlicher. <br />Mit dem, was da jetzt online ist, kann ich auch nicht viel anfangen.</p><p><em>GetPageIDFromAlias()</em> ist keine globale Funktion, die man einfach so aufrufen kann. Sie ist Teil der Klasse <em>ContentOperations</em>. Und diese Klasse holt man sich über das gut alte <em>cmsms()</em>. Undzwar mit der Funktion <em>GetContentOperations()</em>:</p><div class="codebox"><pre><code>$al         = $params[&#039;a&#039;];
$contentops = &amp;cmsms()-&gt;GetContentOperations();
$id         = $contentops-&gt;GetPageIDFromAlias($al);
$smarty-&gt;assign(&#039;pageid&#039;, $id);</code></pre></div><p>Und jetzt das ganze als Einzeiler (weil nicht viel Code):</p><div class="codebox"><pre><code>$smarty-&gt;assign(&#039;pageid&#039;, cmsms()-&gt;GetContentOperations()-&gt;GetPageIDFromAlias($params[&#039;a&#039;]));</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (NaN)]]></author>
			<pubDate>Wed, 20 May 2015 12:56:52 +0000</pubDate>
			<guid>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=35060#p35060</guid>
		</item>
		<item>
			<title><![CDATA[Re: [Gelöst] Content ID zum Page Alias herausbekommen]]></title>
			<link>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=35059#p35059</link>
			<description><![CDATA[<p>Vielen Dank für den Hinweis. Ich bin erst jetzt dazu gekommen, es auszuprobieren. Der UDT namens get_id müsste doch einfach so aussehen, oder?</p><div class="codebox"><pre><code>[== php ==]
$al = $params[&#039;a&#039;];
$id = GetPageIDFromAlias($al);
$smarty-&gt;assign(&#039;pageid&#039;, $id);</code></pre></div><p>Der Auruf erfolgt über <strong>{get_id a=$page_alias}</strong></p><p>Funzt leider nicht. Hab ich was vergessen?</p>]]></description>
			<author><![CDATA[dummy@example.com (antiheld2000)]]></author>
			<pubDate>Wed, 20 May 2015 12:32:02 +0000</pubDate>
			<guid>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=35059#p35059</guid>
		</item>
		<item>
			<title><![CDATA[Re: [Gelöst] Content ID zum Page Alias herausbekommen]]></title>
			<link>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=34975#p34975</link>
			<description><![CDATA[<p>Dafür brauch es kein Modul - die Funktion hat CMSMS schon eingebaut.</p><p>Schau mal in die API-Dokumentation <img src="http://www.cmsmadesimple.de/forum/plugins/ezbbc/style/smilies/wink.png" alt="wink" /></p><p><a href="http://apidoc.cmsmadesimple.org/classes/ContentOperations.html#method_GetPageIDFromAlias" rel="nofollow">http://apidoc.cmsmadesimple.org/classes … DFromAlias</a></p><p>Ab damit in einen UDT und gut ...</p>]]></description>
			<author><![CDATA[dummy@example.com (cyberman)]]></author>
			<pubDate>Mon, 18 May 2015 06:40:35 +0000</pubDate>
			<guid>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=34975#p34975</guid>
		</item>
		<item>
			<title><![CDATA[[Gelöst] Content ID zum Page Alias herausbekommen]]></title>
			<link>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=34973#p34973</link>
			<description><![CDATA[<p>Moin, Moin,</p><p>wie bekomme ich denn zu einem bestimmten Page Alias die entsprechende ID ausgelesen? Dachte das wäre easy mit cgsimplesmarty, aber entweder steh ich auf dem Schlauch oder es geht gar nicht so einfach… Weiß jemand Rat?</p><p>Dank und Gruß<br />anti</p>]]></description>
			<author><![CDATA[dummy@example.com (antiheld2000)]]></author>
			<pubDate>Mon, 18 May 2015 06:17:58 +0000</pubDate>
			<guid>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=34973#p34973</guid>
		</item>
	</channel>
</rss>
