TYPO3 - Link to filelist folders in TCA - typo3

I didn't find any solution for that, so maybe there is a trick to it? I'm trying something like the selectTree-Feature (https://docs.typo3.org/m/typo3/reference-tca/10.4/en-us/ColumnsConfig/Type/selectTree.html) just for filelist folders. It doesn't need to be a checkbox, I don't care about the optic, I just need a filelist folder to be selectable in a TYPO3-Record. I hope there is a solution for it.
Thanks in advance.

you could use "type=input" with a renderType="inputLink" to render a "folder" selector (it is possible to limit the view to just show folders).

Related

How do I move or include compressed and concatenated CSS to footer in TYPO3?

Seems like a simple question, since you can do it with JS files, but I can't seem to find an answer.
I know for javascript things like moveJsFromHeaderToFooter and includeJSFooter exist in typoscript config, but no such setting for stylesheets.
I compress and concatenate my stylesheets as well, so the result isn't a static file either.
I am not discussing its right or not but if you want to move whole CSS to footer here is the solution:
Copy file public/typo3/sysext/core/Resources/Private/Templates/PageRenderer.html to some location in your basic extension like myext/Resources/Private/Templates/PageRenderer.html
In Template Typoscript put:
config.pageRendererTemplateFile = EXT:myext/Resources/Private/Templates/PageRenderer.html
In myext/Resources/Private/Templates/PageRenderer.html you see markers. Just move CSS markers you want to bottom.
The style tag is only valid in the head section. Thats why TYPO3 does not provide a move to footer option.
See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/style
So please create valid html

How to edit an existing controller in Ckan through a plugin?

1 of the adjustments I want to make is to edit the admin.py file in the controllers list. For example, the function def _get_config_form_items(self):
I want to remove some of the default items, but i don't know how to edit the file without changing it in the core.
Thanks in advance!
If you want to remove some items from the config, I don't recommend you to overwrite that part of the code. First, go through the tutorial for writing an extension. Add to your plugin the iConfigurer interface and now you can remove or update config items.

Removing titles from Orchard's Custom Form

I have made a new from, but i want to remove the titles which are displayed before the input fields. I can't really understand how to edit placement.info file, so any help would be appreciated.
Thanks
You probably need to have a look at this: Alternates
Enable the Orchard Designer Tools Module, drill down to your Form and edit or change what you need.

How to change add to cart button styles in magento

Please help me. New to magento. I need to change a default add to cart button style. So what should i do? please help step by step. i am a beginner.
As you are new to magento, You have to learn a lot in this.. I will simply tell you the steps to solve your problem but you have to know each step we make. In magento, go to this path, magento/app/design/frontend/default/default/ Now you can see only two folders ie., etc and locale. and now go to this path magento/app/design/frontend/base/default. Here you can see the same folders as there in the above path with extra two folders. Copy the template and layout folders and paste them in the first path ie., magento/app/design/frontend/default/default/.
Now go to the path magento/app/design/frontend/default/default/template/catalog/product/view/addtocart.phtml. In the line no. 35, you can see code for att-to-cart button. Now modify this step as below
<div class="add-to-cart"><div class="button btn-cart" onclick="productAddToCartForm.submit(this)"><a><img src="<?php echo $this->getSkinUrl('images/add-to-cart.png')?>" alt="Add To Cart" /></a></div></div>
Now you need to add your image in the following path, magento/skin/frontend/default/default/images Here add your image. Dont forget to modify your image name in the code. Now you can see the result. If not, get back to me.

How to create "Dynamic" Breadcrumbs in Zend Navigation

With Zend_Navigation, I can do something like
Home > Projects > Collaborators
but What if I want something more useful
Home > Project name > Collaborator name
How can I acheive this? Is it a good idea? Possibly, there would be performance issues? Cos it got to query up the hierarchy? But whatever it is, how can I achieve this?
Example #34 shows you how to use a view partial for breadcrumbs. I'd do a foreach on $this->pages and adjust where needed
http://framework.zend.com/manual/en/zend.view.helpers.html#zend.view.helpers.initial.navigation.breadcrumbs
The easiest way is to render the breadcrumbs and then append to this string the Collaborator name.
This works unless you don't need it in the navigation or sitemap. Otherwise, you have to add it to the container manually.
$this->navigation()
->getContainer()
->findOneByLabel('Colaborators')
->addPage(array('label'=>'name', 'uri'=>'/name'));
Maybe it's a little bit late, but since I've been struggling with this, I'm posting it just in case it can help anyone.
If you just want to change the actual label of the current page, the easiest way to do it is in this way:
$this->view->navigation()->findOneByRoute(
Zend_Controller_Front::getInstance()
->getRouter()
->getCurrentRouteName()
)
->setLabel($label);
The findOneByRoute will work charmly if you use Zend_Routes, if you don't, you can change it by findOneByX, being X is any property of the page.
Answering to the question of the OP, in this case, it would be easy to do:
$this->view->navigation()->findOneByLabel('Collaborators')
->setLabel('Collaborator'. $name);
Being $name, the name of the collaborator.
I hope this helps to those people that still use ZF1.
Greetings,