How do you use the Fluid paginate widget for a menu? - typo3

I have a site package that has a custom menu, and I want to be able to use the Fluid pagination widget on the menu items.
I set it up as described in the documentaion, and it shows the correct number of items with some page links. However those page links do not work and it will only ever show the first set of items.
How can I get the pagination links to work?
Fluid template:
<f:widget.paginate objects="{menuItems}" as="items" configuration="{settings.paginate}">
<f:for each="{items}" as="item">
...
</f:for>
</f:widget.paginate>
The pagination generates links that look like this:
?id=15&tx_mysite[%40widget_0][currentPage]=2

Related

v:page don't want show custom pages TYPO3 9.5.19 VHS: 6.0.3

<v:menu
levels="3"
excludePages="{settings.menuExclude}"
as="menu"
expandAll="TRUE"
classActive="is-active"
>
<li class="menu-item">
<f:link.typolink parameter="{item.link}" class="{item.class}">
{item.linktext ->f:format.raw()}
</f:link.typolink>
</li>
</v:menu>
I add a custom page like described here: https://docs.typo3.org/m/typo3/reference-coreapi/master/en-us/ApiOverview/PageTypes/Index.html
But v:menu don't want/show to render the page in menu. Settings doctypes deprecated, so how I can add custom pagetype in my menu??
Shot from the hip: make sure your doktype value for the custom page type is a value below 199, as everything above this is considered "unlinkable" by TYPO3. VHS will not impose any limits so this all depends on which doktype values are considered valid by TYPO3 itself.

using category tags in a nav bar on landing page

I have build a landing page to show case recipes using the product and products document types from Umbraco starter kit.
On the single recipes I put some category tags for the purpose to make them appear in a nav bar on the landing page.
I would like to use some code similar to this
<nav class="nav-bar nav-bar--center nav-bar--air-bottom">
<a class="nav-link nav-link--black nav-link--active" href="">All</a>
<a class="nav-link nav-link--black" href="">Vorspeisen</a>
<a class="nav-link nav-link--black" href="">Suppen</a>
<a class="nav-link nav-link--black" href="">Eintoepfe</a>
<a class="nav-link nav-link--black" href="">Hauptgerichte</a>
<a class="nav-link nav-link--black" href="">Deserts</a>
</nav>
I am sure that the above code won't work as it is right now. I have some basic experience with HTML but have no real clue about Razor and how to use the Umbraco Aliases etc.
I know what the above will build a nav bar on my landing page what I want. So that's fine. Only issue I have is that I don't know what to code to use in "" here: href="" to fetch the category tags instead of using a URL for a landing page which is not what I want and also not the ID of a property as I do not have an ID for each tag??? Or where may I find an ID of the tags I create on the content like shown on the screenshots below?
How can I fetch the category tags for the nav bar
Would really appreciate some help as I am no developer
Adding some screenshots to show what I am trying to use:
property on document type
actual category tags examples I want to use
As mentioned before, I am no developer so might need to share some more info to get the guidance I need. So if anybody would be willing to help but wants/needs to see some more code please just let me know what to share and I'll be happy to share what might be needed.
Update 16/02/19:
Structure would look like this:
Home
| -landingpage
| -parent landingpage (that's the page I want to use a nav bar that
filters the childs
| -child elements
| -landingpage
Tree Structure and structure of the landing page in question
pretty similar to a classic blog page.
I have used the default products template and product template from the Umbraco starter kit. and altered this a bit to fit my needs.
This works perfectly fine for my purpose.
I can't understand much since it's not in English but you should be able to do this in your view:
#{
rootPage = Model.AncestorOrSelf(1);
}
#foreach (var child in rootPage.Children) {
var categoryTag = child.GetPropertyValue<string>("category");
<div>#categoryTag</div>
//do whatever else you want in there with the category tags.
}
Here's the cheat sheet for traversing in Umbraco
Make sure you visit the cheat sheet to find different ways of traversing.
.Children is for the children (in the tree structure) of your current page.
.Descendants is for any node under your current page.
.Descendants("nodeAliasHere") is to find any descendant with a specific DocumentTypeAlias under your current page.
The idea behind the code should be: 'Go to the root page, get a descendant page, then find the property with value 'category''.

TYPO3 Extension News (tx_news) show & link tags at detail page

I'm using TYPO3 7.6.2with the extension news(4.1.0) ... I'm showing the news tags at my detail page (own template : Resources/Private/Extensions/News/Templates/News/Detail.html).
At list view it's no problem to show & hyperlink a list of tags.
But not at detail view.I can show them but how can I link the seperate tags as well?
<f:for each="{newsItem.tags}" as="tag">
<f:link.page title="{tag.title}" pageUid="{tag.uid}" additionalParams="{tx_news_pi1:{overwriteDemand:{tags: tag}}}">
{tag.title}
</f:link.page>
</f:for>
The uidis wrong, see screenshot. How can I make a link from detail- to tag-list-view with the corresponding tag?
It just works with a page ID, which contains a news list:
<f:link.page title="{tag.title}" pageUid="{22}" additionalParams="{tx_news_pi1:{overwriteDemand:{tags: tag}}}">
You use the uid as a page uid, thus gives you the wrong link.
You need to link to a page where you have a list of the news items with a certain tag :
<f:link.page title="{tag.title}" pageUid="{settings.mynewssettings.pageidoftaglist}" additionalParams="{tx_news_pi1:{overwriteDemand:{tags: tag}}}">

Different ways to define UI elements in ionic

When using ionic framework for building apps, there are two ways how UI elements can be defined:
using div tags:
<div class="bar bar-header bar-positive">
...
</div>
using directives:
<ion-header-bar class="bar-positive">
...
</ion-header-bar>
In the documentation, the first variant (using div) is used. But in a course I was watching, the second one was used (and it seemed cleaner to me).
What are the differences between the two ways shown above? Is there a preferred or recommended way of defining UI elements?
I recommend you to use Directives instead of Div if you need to access to corresponding APIs. For example for a list : http://ionicframework.com/docs/api/directive/ionList/
Using the directive will allow you to use APIs options.
BUT, if you just want a beautiful UI, and you don't need APIs, you can use div which will render templates fastly.
ion-header-bar tag is just Directive written by ionic with some fantastic attribute which you will not get in div tag
attribute like :
align-title
no-tap-scroll
this both comes with ion-header-bar tag so if you want to perform any action on the view so u can use ion tag or only for view purpose you can use div tag.

Typo3: adding elements inside an list item <LI>

Im trying to get something like this:
<ul>
<li>
<h3>Some header</h3>
<p>Some text</p>
</li>
</ul>
inside a Text element, but when I try to apply the blocktype to the content of the <li>, it applies it to the whole content.
Im using rtehtmlarea. What can I do?
Strange - this works in my installation. You should check the RTE configuration in page TSconfig. I assume something like this:
RTE.default.proc {
allowTagsOutside = img,hr,[your Tags]
}
Another suggestion is: Disable the Rich Text Editor (there is a checkbox below the textarea), enter your tags, then enable it again. The tag structure should be preserved.
If not, drop me a line, I will post my RTE configuration.
If you need a waterproof solution, try playing around with your RTE.default typoscript.