I'm currently working on a page that is supposed to show the 4-5 last added Pages of a specified section:
Category 1
- page1
- page2
-page2.1
-page2.2
- page3
- page4
- page5
- page6
Category 2
- more pages
Category 3
- page1
So the Idea is that I want to show the pages 2-6 of category 1 (page1 is older than 2-6) with all subpages on page 1 of category 3. I know that there is a content element of Typo3 that provides the 5 last edited/ updated pages. Is there a way to do the same but with the last 5 created pages?
(Typo3 8.7)
Edit: I mainly want to show the link to the Page.
Related
We have an extension in TYPO3 8.7, which we're updating to TYPO3 10.4. One thing the extension does is alter the page tree in the backend so for some page types a different field than title is shown. For TYPO3 8 we're using a hook for that: $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/tree/pagetree/class.t3lib_tree_pagetree_dataprovider.php']['postProcessCollections'] where we could loop through the page tree nodes, check the doktype and replace the text.
The page tree has been completely rewritten in TYPO3 9, so this hook doesn't exist anymore. I've looked in the new TYPO3\CMS\Backend\Controller\Page\TreeController class, but don't see any Signal Slot or PSR-14 event in that class we can use.
Is there a way to manipulate the page tree in this way in TYPO3 10?
If you use the Navigation Title field (nav_title) provided by TYPO3 out of the box, you can use the Page TSConfig option showNavTitle to prefer that in the page tree if set for a page:
pageTree {
showNavTitle = 1
}
If nav_title is empty, the regular title is shown instead.
I have a questionnaire App with more than three pages .. I use NavCtrl to go to next page >> but when I go back using back to the previous page using NavCtrl the page displays all forms blank and the data is lost.
Please Help Me :(
There are multiple ways to implement that. Full documentation: https://ionicframework.com/docs/api/navigation/NavController/
Using navCtrl.push(page) to navigate is one option. In that case you have a root page, that is set up in your app.component.ts.
When you return from pushed page by using the back button or closing the view, the root page should be the same.
Note: You need to differentiate between root pages and push pages. The root page is your active page, when you then push pages, the root pages does not change. But when you change the root page, by using setRoot, Lifecycle Events, constructor, ... are called.
Hi All
I'm running:
EXT.KEY: news on TYPO3 v. 6.1 with FLUID/EXTBASE.
I have 2 issue's/question.
1 - News Tag's disappear, when using "tag list" in plugin.
I have added a "tag list" as element on my TYPO3 page, and its working fine, my problem is when i add another news plugin on another page, it's showing all the tag's from the two news plugin setup and I dont what to do that, so if i go to "Startingpoint" in Settings/plugin for the "Tag List" news-element and set it to the folder I save my newslist1 in, then all the tag's are disappeared, how can I set the "Tag list" so it's only show the tag's thats in the news from the folder "Newslist1"?
I have done this "startingpoint" with the list show and its working fine, if at news page 1 it show the news from folder "newslist1" and if on news page 2 it shows only the news/items from folder "portfolio".
2 - more images for a news.
Is it possible to add some image for the news text, so i have 2-3 images in the site, like when u add a normal text/image element?
Answer to issue 2
You can enable the use of normal content elements in News. The switch to activate that feature is in the Extension Manager configuration of News. You then have the possibility to add any content element to a News record.
By default the content elements are rendered before the normal news content, see here:
https://git.typo3.org/TYPO3v4/Extensions/news.git/blob/HEAD:/Resources/Private/Templates/News/Detail.html#l67
Of course you can change to order if you copy the template and adjust it to your needs.
Its beter add you plugin width ts, like
lib.newstags = USER
lib.newstags{
userFunc = tx_extbase_core_bootstrap->run
extensionName = News
pluginName = Pi1
switchableControllerActions {
Tag {
1 = list
}
}
settings < plugin.tx_news.settings
settings {
listPid = 73 # here you tagse source page/folder
}
}
Its beter to use Type "Innernal link". You can select in item edit form. Than you can add any page like contents element in your news item.
Another Magento issue - there seems no end to them.
This time the top menu navigation class 'active' and breadcrumbs seem to appear/disappear depending on the user journey (I guess due to page caching).
Example...
If I'm on the homepage and click an product from the 'New Products' widget - the breadcrumb becomes: Home > New Product Name (missing out the 'clothes / Tops / Long-sleeved' etc), plus the navigation active class is not appearing.
If I view that very same product first by navigating through the shop categories, then I return to the homepage and click the same product from 'New Products' - the breadcrumb works fully, and the active class is applied in the navigation menu correctly.
Why is this? What is happening and how can I fixed it?
Any advice much appreciated.
EDIT 1: in addition, if I navigate to a product through the categories in the menu, click into a different category (outside of the products root cat), then hit the back button on the browser... the same thing happens, breadcrumb reduced to 'home / product name' and the menu active class disappears.
Not sure if this is an 'issue' or a feature. Magento can have the same product in multiple categories. So Product A can be in the root category, Category 1 > Subcategory 1 and Category 2, all at the same time. What should be the url then? You have the following options:
website.com/ProductA.html
website.com/Category1/ProductA.html
website.com/Category2/ProductA.html
website.com/Category1/Subcategory1/ProductA.html
None of them are 'wrong' and doesn't even stop here, imagine a multistore environment where two stores have the same root category, but different domains and languages:
website.com/ProductA.html
website.com/Category1/ProductA.html
website.com/Category2/ProductA.html
website.com/Category1/Subcategory1/ProductA.html
website.org/ProductA.html
website.org/Category1/ProductA.html
website.org/Category2/ProductA.html
website.org/Category1/Subcategory1/ProductA.html
etc.
Conclusion, if you really want the breadcrumbs and active-class to appear when clicking on a product from the 'New Products'-widget, you have to modify the widget's block so that it prints the product URL in a customized way.
I'm developing my first site in TYPO3, currently I have a structure that looks like:
Page1
subpage1
subpage2
subpage folder -> with images
Page2
subpage1
subpage2
subpage3 folder -> with images
What I want to do is load content from subpages of Page1 into my subpage(say images from folder would part of slider, subpage1 would be main content and subpage2 would be sidebar content.
The idea is to use templavoila and map it via Typoscript object.
Now the problem I'm facing is, I have no idea how to fetch content from current UID subpages. How would I do that in the mentioned context?
I'm not asking for a done solution, just point me in the right direction or show similar example etc.
Thanks. :)
You would need to get the list of pids first and then you can use the CONTENT TS object. Properly you can use the stdWrap.cObject property to generate your list of page ids just inside the CONTENT object.
Post a comment of you need an example.