Umnraco URL's also display pages with Views name other then Created Nodes - url-routing

I am working on Umbraco v7, I have just noticed the Umbraco also returns pages with matching views name, it should only display pages with created nodes Url, for example if a view name contactus and a node name contact-us, Umbraco shows both pages, How I can force Umbraco not to display pages with views name.

This is likely dealing with the 404handlers.config. Remove
<notFound assembly="umbraco" type="SearchForTemplate"/>
from the list.
If a page is not found, Umbraco will go down this list before returning a 404.

Related

Drupal 9 - Two different URL's work for same page

I have a Drupal 9.x version site, as an example whose page URL is like : http://www.example.com/general
but we need that URL to be work as http://www.example.com/something/general also.
It means, my every page of my site to be work (both URL's) with or without PRE-FIX word before of every page name.
Reason: I am looking this feature is, my website page has to load into other website pages. Which means with an iframe I am planning to display the drupal 9.x content into other website. With this PREFIX word if we are calling the URL the header, footer, sidebar of the present page site will be hidden.
If with out the PREFIX word if i am looking the website, the header, footer, sidebar will be displayed normally.
Both URLs should work:
I have about 550+ content pages, and many of our content pages are coming from custom modules, views.
I tried with URL alias, If i have go with this then I have to add these all 550+ content pages URL in our URL alias, that will not work for me.
Is there any other way around that i can achieve the same with minimum effort.
Please suggest me the solution, It will be very helpful for me.

How to set frontpage content on Drupal site with MAMP?

I have an existing site that uses Drupal. I am using MAMP and the document root points to the web folder where the page to be displayed is located. When I go to "my website" from the MAMP web start page I get a generic Drupal page that says no front page content has been created but I am expecting the my site to be served. How do I get my site to display instead of this message?
"no front page content has been created" is the standard drupal front page message.
The standard Drupal front page automatically displays any nodes that have been "promoted to the front page", but since on a new drupal install, no nodes have been created (and promoted to the front page), you will get that message.
EDIT: Actually, I think in D8, the front page is a view.
There are a multitude of different ways to set the content on the front page, depending on your needs.
There is even a module called "front page" specifically for it.
What I have often done, is create a "basic page" node, and then set the front page to be this node in the theme settings. As this node is usually the first thing I create, it will be "node/1", which is what I enter into the front page setting.
I think the automatic displaying of "promoted to front page" nodes on the front page is a remnant from the old days when Drupal was often used as a blogging platform

List Kentico 7 published pages

I inherited a CMS with some pages that are hidden or archived with published pages beneath those and I'm trying to get a scope for pages that are available to be viewed that are linked via other pages in the site. I'm trying to distinguish between pages that have a "path" to them and those that are published but only directly accessible via URI.
Is there a SQL Query or report that I can run on a Kentico 7 CMS (or its database) to get a list of published "pages" and whether or not they're able to be accessed (i.e. if they're linked to other visible pages or if they're hidden behind other parent pages)?
I know I could use a site crawler, but I don't know if that will take into account pages that are hit via buttons or script or things of that nature.
This query should get you what you're looking for.
SELECT *
FROM View_CMS_Tree_Joined
WHERE (NodeLinkedNodeID IS NULL OR NodeLinkedNodeID <= 0)
AND Published = 1
What this is doing is querying the tree node view. The NodeLinkedNodeID is the field which holds the linked page, if it is linked. There are some other fields on that view you can query against but those two should get what you need. You can also use the DocumentIsArchived field too, it's a boolean field.

Creating an index page automatically

I'd like to have dotnetnuke build an index page based on pages that have a particular tabid. Are there any modules that do this already?
e.g. we create multiple pages under /News and then the index page lists links to all the news articles. Would be handy if we could also enter our own HTML text (maybe on the News article page itself) that is then displayed next to each link on the index page.
Thanks!
By default, there are no 'real' pages in DNN. Everything is served up in the Default.aspx from content that is stored in the database.
What you could do is create a module that populates data based on the TabId or Path. Then, there is a setting in DNN to make a module appear on EVERY page. Since the module is on every page, it could populate its data based on the TabId or the path, or just not show anything if it doesn't match your criteria.
For something like that, I used a module called SQLGridSelectedView from www.tressleworks.ca (I have no affiliation) and I wrote my own SQL to fill in the fields, and I defined a custom layout (instead of the default data grid) so I was able to do something like what you are asking without code.
There is a module from Ventrian called Child Links that does what you are talking about. You can use it to grab title & description from the pages below a relative to a specific page to build out menus etc.
It allows for formatting however you want as well.

How do I name a drupal page template file according to a node's url path setting?

I'm new to drupal and having trouble naming a page template file. In drupal 7, let's say I've created a basic page with the url path as:
www.example.com/my-page
When I create a custom page template file, I've been able to get the file name page--node--[nid].tpl.php to work fine. However, I have 3 different sites (localhost, development, and production) and each has a different node id for this page (because the databases aren't sync'd). I need to find a way to name the template file according to the url path. I've tried all of the following, none of which has worked:
page--my-page.tpl.php
page--my_page.tpl.php
page--node--my-page.tpl.php
page--node--my_page.tpl.php
Any suggestions?
Check out the theme developer module. With it you should be able to get a list of possible template names that are being considered.

Resources