As I asked above is it possible to create template file for specific node id. I now we can create template file for content type, but not clear for node id.  E.g. Suppose there are 10 Articles in website, each has node id from 1-10. Now question is I want to create template file for node id 3. When user visit article node id 4, then user will see different page.
5401
I'm trying to define a custom template file for a specific node, using the node ID. I read a lot of topics saying to create a node--X.tpl.php file in the templates folder.  That's what I did; unfortunately, even after flushing the theme cache many times, nothing changes.  Is there anything more I have to do?  I am using Drupal 7.
43041
My problem is that depending on a running mode my Drupal website might have either regular permalinks, or pretty, aliased ones. And "Page specific visibility settings" for blocks on specific pages (Show on only the listed pages) do not work across the modes.  It would be logical if let's say: node/23 syntax could work in any case, but it seems that it doesn't.  Do I have to change every setting for every block every time I switch permalink structure? Or there is more flexible solution to this?
86112
I need to make a link to create a new node. I need this link to appear on taxonomy term pages so I was going to put it in a block. Nodes can be tagged with taxonomy terms.   How can I make it so the create node form has the term (from the page the link was on) already selected? So if you were on mysite.com/term/1 and and clicked the create node link, the node would have term 1 already selected.   Ive found this module but its in dev for D7 so there another way?   Thanks
116900
Is there an easy way to create tree nodes from data in a file? I need the tree to have nodes in the format 1,2,3,4 rather than 1,2,4,8 etc. I can't create the nodes in a loop as there would be two child nodes for each node.  I'm picking up the data in each cell and declaring a variable for each entry. Is there an easier way to create the following tree? Each row in the file is a node, and I will eventually be filling each node with columns from each row.  \documentclass{standalone} \usepackage{catchfile,tikz} \usepackage{pgfplotstable} \usepackage{filecontents}   \begin{filecontents*}{\jobname.dat} a&amp;1&amp;2&amp;3\\ b&amp;1&amp;2&amp;3\\ c&amp;1&amp;2&amp;3\\ d&amp;1&amp;2&amp;3\\ e&amp;1&amp;2&amp;3\\ f&amp;1&amp;2&amp;3\\ \end{filecontents*}  \begin{document}  \pgfplotstableread[col sep=&amp;,header=false]{\jobname.dat}{\firsttable}     \pgfplotstablegetelem{0}{[index]0}\of{\firsttable} \let\RowZeroColZero\pgfplotsretval \pgfplotstablegetelem{1}{[index]0}\of{\firsttable} \let\RowOneColZero\pgfplotsretval \pgfplotstablegetelem{2}{[index]0}\of{\firsttable} \let\RowTwoColZero\pgfplotsretval \pgfplotstablegetelem{3}{[index]0}\of{\firsttable} \let\RowThreeColZero\pgfplotsretval \pgfplotstablegetelem{4}{[index]0}\of{\firsttable} \let\RowFourColZero\pgfplotsretval \pgfplotstablegetelem{5}{[index]0}\of{\firsttable} \let\RowFiveColZero\pgfplotsretval  \begin{tikzpicture} [grow=right, sloped,dot/.style={circle,fill,inner sep=0.5pt}] \coordinate  node{\RowZeroColZero}     child {     node {\RowTwoColZero}             child {node {\RowFiveColZero}}             child {node[text opacity = 0] {\RowFiveColZero}}     }     child {     node {\RowOneColZero}             child {node {\RowFourColZero}}             child {node {\RowThreeColZero}}     } ;  \end{tikzpicture} \end{document}     At each node, if I could even extract the node coordinate and locate a row in the file with the node reference, that would be a great help in reducing the amount of code.
56384
When declaring a template, I am used to having this kind of code:  template &lt;class T&gt;   But , they used:  template &lt;unsigned int N&gt;   I checked that it compiles. But what does it mean? Is it a non-type parameter? And if so, how can we have a template without any type parameter?
123057
I am using hook_theme_suggestions_HOOK() to implement a custom template file in my drupal 8 website like below.   /**  * Implements hook_theme_suggestions_HOOK().  */ function mymodule_theme_suggestions_page(array $variables) {   $template_suggestions = array();   // This is used to display only $content.   if (isset($_GET['ajax']) &amp;&amp; $_GET['ajax'] == 1) {     $template_suggestions[] = 'page__ajax';   }   return $template_suggestions; }   Above code is working fine and I can add template page--ajax.html.twig inside my current active theme and changes in template is reflecting in page.  But when I put that file inside my module itself file is not detecting and changes not reflecting in page and taking default page.html.twg template file.  How can I provide default template file within my module itself?
25000
I've already added my scripts, but I wanted to know the preferred way. I just put a &lt;script&gt; tag directly in the header.php of my template.  Is there a preferred method of inserting external or custom js files? How would I bind a js file to a single page? (I have the home page in mind)
48452
What is the benefit to creating new entity types over just building a new content type?    It seems a bit overkill to do all of the custom coding that is required to create a new entity when you have all of the CRUD and Views functionality already built into content types.
71354
I have edited a script that creates some nodes, but the only problem is, it always created a new material. I want it to either add the nodes on the existing material, or a pre-defined material. Here is the script base I am using.    Thanks for the help in advance! :D
32320
how to prevent user creating a duplicate node title for a content type?  I already try uniqueness module () but it's only list out the duplicate content title but not return any error message when user save the new content. Any suggestion module or code? :)
122699
I want to know if it's possible to get the ID of a page with a specific template. Is this possible to get the ID of a page that assigned to "page-special.php"?
23750
Since Drupal 8 it is not possible with template naming conventions to load a specific block template according to the region it is placed in (). But I need to have different html for blocks if placed in a certain region. How do I accomplish this?   I've thought about using MYMODULE_theme_suggestions_block_alter but I don't know how to get the current region.
122564
I've noticed that link-ids are not rewritten. I would much prefer it if they were.  For instance, lets say I'm on . And, let's say I want to link to a specific answer like  by @Eric. It would be nice if an inserted link on the page to that question would get rewritten to be href="#3346729". This would prevent the need for my browser to reload the page. I would save a lot of time, and with this extra time I could help even more people.  This is of course only referencing the html to be rendered. I don't care at all about what sits in the SO DB... Though personally I wouldn't want to fix my internal linking to make assumptions about the transport.. That seems silly, but it is not my business. Wikipedia doesn't permit this because it is a bad idea, that's why Wikipedia is one step ahead with the [link generator], and even has [otherprojects:linkgenerators] accessible that make no assumptions about where the questions/answers are currently sitting. Even perlmonks had link generators some 10 years ago, [rt:num], and[id:node].  UPDATE     If you change the display links to be only relative to the current page, you can no longer copy/paste them so that they can be used elsewhere, such as in another SO posting, or another website. – Robert Harvey 1 hour ago   So Dr. Harvey has a point. I looked into how Wikipedia does this, because they're a few steps ahead of Stack Overflow, and apparently all you have to do is not specify the "comment" number.  If you click on this link it will not rerender the page. http://meta.stackexchange.com/questions/58645/updated-question-plz-reread-please-make-links-to-other-answers-in-the-same-qu#58685  or this link, '#58685`  If however, you click on this link it will http://meta.stackexchange.com/questions/58645/updated-question-plz-reread-please-make-links-to-other-answers-in-the-same-qu/58685#58685  So what SO is doing is rendering a different canonical url entirely for the comment at /58685 even though that page is most probably the same, how very dirty.  Update AGAIN  Had to change the links because they changed when I updated the title (another SO bug I guess)
36002
Is it possible to generate a random number for use in the node editor?  I am aware of the Object Info node, but I want a random number which I have more control over. Ideally I could change it with some sort of "seed" vale and be able to define limits for maximum and minimum values.  How is this possible?
22600
I have a category page that leads to an additional 100 pages. For example:  www.example.com/category &lt;- this is my category page   www.example.com/category-2.html &lt;- this is paginated content  My question is, do I need unique meta tags for each and every page, or is there any way that my category page's meta tags can be used by all the numbered pages?
43579
Apparently, at one time, there was a directory of core-blocks for building Gutenberg templates on GitHub, but I'm not finding it anywhere. I talking about core/paragraph, etc.     array( 'core/paragraph', array(         'placeholder' =&gt; 'Content goes here',     ) ),     array( 'core/image', array(         ...  Thanks!
96786
I have created node there path is "content/book/book-name-alias". Where I have override a node using view page "content/book/%" where  contextual filter using "Node Id".  When I have request a page using "book/content/9" a node will override but same node "book/content/book-name-alias" it is not working.  How to override a node using an alias?