I need to change url of default button on drupal. On that button, the url is example/blog. And i want to changet it becomes example/blog/1.
capture of my web
First, you should enable twig engine debugging(explained here) to find out what *.html.twig files does it fire and then cover it with your custom file or change the original one.
Related
I want to change the default page for a site of a custom type that I've defined, I know that the default page in defined in the slingshot.site.configuration.xml but it changes the default page to all sites, is there any way to customize this for my needs ?
Default layout site is defined here
presets.xml
Under
<ALF_HOME>\tomcat\webapps\share\WEB-INF\classes\alfresco\site-data\presets
So now if you want to change this out of box layout you can create your own preset file and keep it under extension
<ALF_HOME>\tomcat\shared\classes\alfresco\web-extension\site-data\presets
If you are using AMP then it will go with AMP file at given location.
I am new to theming in plone 4.3. I was experimenting and set up a rules.xml file to read an existing index.html theme that I had - it of course did not theme correctly and worst - I cannot find a way to log back into the theming control panel. The index.html contents appear on the plone page (without the css somewhow), but I want to go back and remove the rules. I tried to delete the rules.xml file, but that did not help - any suggestions?
As the message at the top of that page says, the theming control panel is never themed. You can get to it directly by URL, e.g. http://localhost:8080/Plone/##theming-controlpanel. Then disable your theme on the 'Advanced settings' tab.
Alternatively you can disable Diazo for a page by appending diazo.off=1 in the query string, e.g. http://localhost:8080/Plone/front-page?diazo.off=1
I am working in Drupal 6.26. I am developing a custom module, in which i am i want to upload file in node creation page. I want an option to upload image, like there should be file upload component and a upload button. So when admin select a file and click on submit button file has to get saved in a folder and need to save the path in database. After upload the image thumbnail should appear with remove button. When the admin clicks on remove button the image thumbnail should disappear and file upload component has to displayed with upload button. On save of the node, the image path has to map with node. This is similar to cck file upload option. Please help me to do this. Thanks.
this would be a complex form using AHAH (AJAX) behaviour to both get the thumbnail displayed and the remove button functionality.
I would recommend starting off by studying the File upload and CCK code so you can define simple form using the Form API and then adding to it some AHAH magic.
You can get a good example of a AHAH module in Drupal 6 here
When I have a custom node type and I want to create a page, can the link be something other than what Drupal automatically assigns?
i.e. Currently to add a node-type it is: www.example.com/node/add/node-type
but can it be customized to just www.example.com/node-type ?
You can use the path module, which is a part of Drupal core, to create a path alias. This will change the appearance of the url in the browser, but internally it will stay the same. You can find the settings at admin/build/path
searching for a method to change a header image if I click on a link in BlogEngine.Net.
Let's say if I am at / and go to /page/about.aspx the header image should change.
This will require custom code for the page. There is nothing built in for this, and since the header image isn't a server object by default you will need to make it a server object. Then have some sort of settings file that stores what header image links to what page. You can then plug in an admin page to manage that settings file.