简体   繁体   中英

How to create a frontend plugin in TYPO3

I'm trying to create a simple frontend plugin in TYPO3, .

I want to be able do putit into my backend template, just like I am able to put a regular text element , a table or a bullet list .

在此处输入图片说明

The plugin should have two textfields, that people should be able to fill in:

Invoice Number & Title

Then when the it is put into the page, the frontend should render it as following:

<a href="domain/invoices/{invoice number}.pdf"> {title} </a>

How can I achieve this, I tried using the Extension Builder, but I couldn't get the fields to end up in the typo3 backend.

NB I'm not looking for a specific solution for this problem, I'm just trying to create (more complex) frontend plugins and simplified this problem for the sake of understanding the general principle.

I described creating plugins and inserting it to the Wizard tabs in the other answer so probably all you must do is to follow it step by step.

Additionall fields of plugin you just need to define the FlexForm (sorry, it's too broad to describe, hope you know the approach)

If you only need a content element to display a link to an invoice, based on the invoice number entered in the content element on that page, you can use fluidcontent & flux to generate a content element of your taste. Have a look at the fluidcontent_bootstrap for examples.

If you want to creating an ext. where you can can retrieve a list of invoiced that has been added to the DB (or some other source) , then the extension_builder is a good kickstarter. If you set a front end plugin in the builder, it would shown up in the plugin list (not in the tab itself, but in the dropdown list if you would choose general plugin, first)

For the extra field: What you propably missed it the use of flexforms in your extension.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM