How to set up a TypoScript Playground in Typo 3? - typo3

How can one play around with TypoScript code shown in documentations about TypoScript?

Tested with a local Typo3 test instance, Typo3 version 9.5.5, Official Introduction Package installed.
In the backend, create a new page in the tree. Rightclick -> enable it (the red overlay should disappear). Make sure it is selected in the tree.
Click on the blue Template button on the left. Usually it will show you the blue No Template message.
Make sure on the top Info/Modify is selected from the drop down.
Click the gray + (New record) button under the drop down.
On the bottom, click Edit the whole template record.
Optionally give it a speaking template and website title, like 'Playaround' and 'Play Around'.
Optionally, under tab Options -> Clear, select Constants and Setup - this will clear everything this Template has inherited from parent templates, but will also disable the debug infos at the bottom of the frontend for this page (if you have installed the Official Introduction Package).
Under the tab General -> text entry Setup, enter the following TypoScript:
page = PAGE
page.10 = TEXT
page.10.value = Hello World
press the Save and then the View button.
A new tab opens, showing you the frontend for your page, printing the text 'Hello World'.
Now you can play around with the code examples given in eg. the TypoScript Reference.

Funnily enough, I just found out that Typoscript is by definition not a programming language, but a configuration description. That's why Typo3 is needed as a substructure for this, I think. There seem to be online demos of Typo3 on the net, but I don't know whether they are up to date and whether you can test TypoScript there. Therefore access local containers / installations as suggested. Or if the possibility exists a dev subdomain.

Related

Customization of login screen is not working in Keycloak application?

provide configuration for customization of login page.
https://www.keycloak.org/docs/latest/server_development/index.html#_themes
Tried the above tutorial but its not working.
Do i need any permission for customization?
I wanted to change the logo, so I tried following the official tutorial, but it did not change. After all, I found that we should add few html lines containing the css class (resources/*.css) to display the logo instead of the default text. Steps below:
Select you Realm
Go to Realms Settings
Tab General
Fill the HTML Display Name field (by default it is blank) with the content having class kc-logo-text (login.css related) or your custom class (you can see the Master realm did it) in order to make the logo appeared.
Save
Tab Themes
Select your custom theme
Save
// For example:
HTML Display Name: <div class="kc-logo-text"><span>Keycloak</span></div>
Solution derived after I read https://lists.jboss.org/pipermail/keycloak-user/2019-September/019320.html

Breadcrumb doesn't work on a component I created (Joomla!)

I'm learning how to use Joomla! 3.2
I created a new component, then I added it to my main menu,
Here are the only parameters I changed in the main menu:
But now when I go to my new component the breadcrumb doesn't work correctly, there's only the home button and when I click on it I'm redirected to the same page:
Did i missed something very important? How can I fix it? The breadcrumb works on every other pages.
Ok I found the problem, I forgot to add this
$pathway = $app->getPathway();
$breadcrumb = $pathway->setPathway(array());
$pathway->addItem( JText::_( 'COM_PARTISPOLITIQUES' ),JRoute::_('index.php?option=com_partispolitiques&view=partispolitique'));
$pathway->addItem( "Current page name",'');
In the file view.html.php located in my component folder...
I am going to assume you are using the Helix template as it seems to be a common oversight.
Make sure that Enable Page Title is enabled from your menu Helix Page Title tab.
If not, please advise as to what template.

TYPO3 footer menu

I wonder what is the best way to do this.
I have two menues on the template for the first two levels of the navigation. They are separate, because they are on slightly different locations on the page.
Now, I used to put all my special meta-nav and footer pages into a sysfolder. That actually works pretty fine with special.directory. So far all good.
But when I open a link from the footer, the footer menu's links are shown in the 2nd-level HMENU. It makes more or less sense as the pages are in a sub-folder and therefore 2nd-level. , but they are in a folder.. So I guessed it should work.
My solution is to hide all pages in the sys-folder and in the footer menu using includeNotInMenu. That works, but I wonder if there is a cleaner solution to avoid sys-folder's content to be treated as 2nd-level pages. I don't like the editor to have to remember to hide the pages to get the expected result.
Thank you
i guess you are asking for "hide in menus". Edit your page sitemap, go to tab "access" select "hide" below "In Menus". Sitemap will not be shown in your menu, as long as you do not set "includeNotInMenu" in your menu rendering.
# assume 12 is the uid of your folder
[PIDinRootline = 12]
# Delete the menu
lib.yourmenu >
# or overwrite it:
lib.yourmenu = TEXT
lib.yourmenu.value = there is nothing to see here
[end]
Using conditions is more difficult to debug. You need to select them in TypoScript Object-Browser, if you want to see the effect of an condition.
You can sent an entryLevel
Defines at which level in the rootLine, the menu should start. Default
is "0" which gives us a menu of the very first pages on the site.
If the value is < 0, entryLevel is chosen from "behind" in the
rootLine. Thus "-1" is a menu with items from the outermost level,
"-2" is the level before the outermost...
See http://wiki.typo3.org/TSref/HMENU
I'm not sure I understand.. Assume I have the following structure
home
home/subpage1
home/subpage2
meta-nav
meta-nav/sitemap
meta-nav/impressum
-> meta-nav is a folder.
Now I have a HMENU for the 2nd level and it shows (depending on the selected page):
(subpage1 and subpage2) or (sitemap and impressum)
Now what I want to achieve is to open the sitemap or the impressum and not see those in the HMENU.
Sorry if that all sounds strange ;-)

Hide or Remove the Content TV from a template in ModX Revo Backend?

I have a resource in ModX Revolution and I'm using some TVs but not the 'content' TV. So, it is not used & it confuses users who insert content into it which is not supposed to be displayed on the frontend.
How do I hide or remove the 'content' input from a particular template in ModX Revolution backend?
Fishcake is right, you should utilize the builtin form customization for this.
You have to:
Go to Security -> Form Customization
Create a new form customization profile.
Edit your newly created profile (right click).
Create a new form customization set for the 'Create'-Action.
Edit this set (right click).
Choose the template you want to restrict the customization to (other constraints are possible, too).
Remove the tick beneath modx-resource-content (Set information and fields tab).
Create another form customization set for the 'Update'-Action and repeat steps 5 - 7.
constraints. Have a look at the form customization sets documentation for a more lengthy explanation.
I've done this in Evolution using a plugin called ManagerManager.....a quick search later.....seems it is now native functionality to Modx Revolution: Customizing the manager

Changing Title of home page in Joomla

I am totally new to Joomla. I am trying to help a friend whose ISP has stopped support (for some internal reasons). We need to change the title of the home page.
1) The first place i made a change was in the 'Front Page Manager'. I changed the 'Title' column. The 'Show Title' parameter on this page is set to 'Global'. Yet the new title does not appear.
2) I then downloaded the entire site , consisting of 10,000 files and searched for the old title in all the files. I found the old title in one file which seemed to be used for SEO pruposes , since it had a whole lot of companies and their titles. I uploaded this file. No effect.
3) I then browsed through the database (MySQL) and changed old titles found in MetaKey and MetaDescription columns to new title. I think i checked all tables (almost 100 odd tables). No effect.
4) I found the old title in the 'Top Menu' item and changed it too.
I know this is a bit ambiguous but how could i troubleshoot the source of this title which does not get changed ?
Thanks,
Chak
Titles in Joomla come from several places. As Legycsapo said, the first place you should look is the default menu item. In the Parameters (System) the Page Title should override any other setting unless you have an extension that sets the page title. The Show Page Title option determines if the title shows up in the content, it does not affect the page title.
Try to change it in the menu options. In the mainmenu, click on the "Home" link, or whatever you write for Frontpage, and there are options in the right. The last one is the parameters, system, there is a "Website title" input box. Try there !
You need to change the home page title in the Control Panel Configuration.
In the Site tab you have the Site Name which is what will be written in the page title.
Another solution is, if you have SEF urls enabled, joomla has a native plugin called SEOsimple. Look under Plugin Manager, click on it and change the title to either disable so that it takes the title by default from global configuration or your custom one.