29 February 2012 at 6:06am
I would like to know all the dependent placeholders of another placeholder.
For example, $Locale is a placeholder dependent of $Translations placeholder.
¿$Translations has more placeholders?
Which does he have?
Are they in the documentation? Where?
Do I have to see the SilverStripe source code to discover them?
Which class in SilverStripe correspond to $Translations placeholder?
locale is a column on the sitetree table in the database that is added once you add the translatable extension to sitetree.. $locale would insert the contents of the locale column in a record into a template, but you could also insert stuff from php functions (like $Link) to dump a page link into its template. this is covered really nicely in the tutorials (there are 5 main tutorials that really get people started [url=http://doc.silverstripe.org/sapphire/en/] here[/url] but if you want to see a standard list of built in page controls (mainly from the SiteTree or ContentController classes) look [url=http://doc.silverstripe.org/sapphire/en/reference/built-in-page-controls]here[/url].
i think translations is a control block that returns all the pages (subclasses of SiteTree) in the current page's translation group. you can then call any function in the Page / SiteTree class once you're in the translations control block.