This forum is for module development and code related questions, not general module support. For general support, use the Post installation forum.

Duplicate Node Pages

Hi,

How do you fix the issue of exact duplicated /node/ pages generating? Other than redirecting them to the real page individually.

For instance, https://www.skiline.co.uk/france/les-arcs/club-med-peisey-vallandry is the real page and then there is this exact duplicated page here - https://www.skiline.co.uk/node/9718/privacy

link rel= displays /node/xxxx but need to replace with alias or /

I'm on D8 and have a site page set as the front page. Set /node/4747 as the default in site settings. When looking at some of the link rel attributes listed after the meta tags the actual node url is displayed <link rel="alternate" hreflang="en" href="http://local.example.com/node/8454" /> and haven't been able to figure out a way to have it display http://local.example.com/ instead of the actual node url. Is it possible to change or overwrite this? 

Menu item not displaying in navigation

I created a  new module name products. I am trying to add a menu to navigation but it is now Displaying. Below is my code.

function products_menu()

{

$items['products/add'] = array(

'title' => 'Add Product',

'type' => 'MENU_NORMAL_ITEM',

'page_callback' => "add_product",

Drupal 8.5 contact form attachment removed

Hi!
I have annoying issue with an application form, using Drupal 8.5 contact form. The file (PDF) uploaded to the form, is marked as TEMPORARY, so it disappears after a while. In admin/config/media/file-system I had set "Delete temporary files after": "Never"., but it doesn't work.

Thanks for the answers

:)

always invalidate captcha module

Hi, I am using the captcha module on a form in Drupal 8 and I noticed that if I verify I am human, close the chrome tab and relaunch the contact form page, I no loner am required to interact with the captcha module its like its cached or something? Where at in the module code, can I force it to invalidate over and over so a user is ALWAYs required to use the captcha module.

allowed names for module files

Hello,

I have my own custom module on Drupal 7 and I would need to take some code from *.module and organize it to the separate files.

But can not find tutorial or reference, what sugest it.

For example:
files[] = my_file.inc
in *.info does not run (if there are hooks in this referenced file).

I could include intended files with php's "include" command, but as I watched on some contrib modules, it is not used, so probably not needed - and so I suppose, nor is it right coding way...

Pages

Subscribe with RSS Subscribe to RSS - Module development and code questions