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
Related
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.
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'm having some trouble trying to figure out how to make a custom URL in the admin area for my plugin. I already know how to use the add_menu function, but I need to create a sub-page for the plugin which wont be listed in a menu. I can't figure out how to define a URL for this page though.
Basically I just need it to do if they view "admin.php?page=my_page" then use the function I have made which simply does an include on the .php file for the page.
you can just use the ?page=my_page
if you want to add more to the url then use
?page=my_page&page-id
you will directory able to access this in admin area no need to use extra like bloginfo something for whole url
hope this will help you
i would like to use a css file in drupal 7 for a specific page and i would like to cancel the default theme for this page.
I use the method called drupal_add_css it's working but this method doesn't permit to cancel the defautl theme
Help
You can use the Themekey module to configure which theme is displayed for which page. If you set the theme for the page you want to cancel the default theme for to Stark (the no-frills no-style theme included as part of core in D7), you will be able to use just your css via drupal_add_css().
i tried to configure my imagecache..installed n enabled the module..now i created a cck for images..and set its test mode display as thumbnail preset linked to the node..
now when i am trying to add content to it, its not displaying the content on the node page.
I solved problem,;) when I activated the "ImageAPI GD2" package under the ImageCache module activation form (admin site building).
There are a few things you can check:
Go to /admin/content/node-type/YOURNODETYPE/display and make sure the image field is visible both in teaser and full view.
Make sure proper permissions are set for the files/imagecache folder (the files folder is usually located in site_root/sites/default/)
Check if the image shows up when you are on the node edit page
To use image cache you need to check three things.
check right php extension(GD) is installed
check your folder permission(generally sites/all/files)
ckeck permission for the field is given for drupal