Giter Site home page Giter Site logo

Comments (22)

mrhaw avatar mrhaw commented on August 17, 2024

Why are you not doing it dynamically: [[id]] This should be discussed in the forums.

from evolution.

Jako avatar Jako commented on August 17, 2024

Would suggest Weblink and add some code to make [+firstchild+], [+parent+] etc. possible …

from evolution.

Dmi3yy avatar Dmi3yy commented on August 17, 2024

You can do checkbox for FirstChildRedirect not see problems

add TV (name: firstchild):
-type checkbox
-FirstChildRedirect==[!FirstChildRedirect!]

add in Template
[firstchild]

use ManagerManager for move this TV in Setting Tab

enjoy )

from evolution.

fourroses666 avatar fourroses666 commented on August 17, 2024

Ok Dmi3yy, thats a possibility indeed, thanks!
If you ask me I would love to see it being a default setting 👍

But I can't get it to work,
Input Option Values: FirstChildRedirect==[!FirstChildRedirect!] ?

(to move the tv with MM this works)
mm_moveFieldsToTab('firstchild', 'settings');

redirect

BTW, missing translation: use current alias in alias path

from evolution.

Dmi3yy avatar Dmi3yy commented on August 17, 2024

BTW, missing translation: use current alias in alias path

you can help with translate
https://www.transifex.com/projects/p/modx-evolution/

from evolution.

Jako avatar Jako commented on August 17, 2024

The string was marked as translated on transifex.

from evolution.

Jako avatar Jako commented on August 17, 2024

The checkbox is superfluous in most situations and could be achieved with ManagerManager.

Maybe the Weblink input should be extended somehow.

from evolution.

fourroses666 avatar fourroses666 commented on August 17, 2024

yea maybe like adding to the dropdown with webpage and weblink the 3rd option: "Weblink with First redirect" ?

from evolution.

Segr avatar Segr commented on August 17, 2024

Something obscenities... why redirect only to the first child?
May be:
Redirect: select form - none / first child / last child / random child / on child (redirect if child count==1) / parent
And in configuration can edit default value for this param.

from evolution.

fourroses666 avatar fourroses666 commented on August 17, 2024

Yup! Redirect to first I use allot but having other choises would be even better

from evolution.

Dmi3yy avatar Dmi3yy commented on August 17, 2024

ok do this in 1.1 or 1.0.14

from evolution.

Segr avatar Segr commented on August 17, 2024

And do not forget change "seo strict URLs" to use this setting

from evolution.

bossloper avatar bossloper commented on August 17, 2024

Also remember FirstChildRedirect defaults to a 301 redirect (Moved Permanently) that may be cached by your browser.

from evolution.

fourroses666 avatar fourroses666 commented on August 17, 2024

🔥 👷 🔥

any plans to do this for 1.0.16?
I like this idea allot but can't use it :(

from evolution.

fourroses666 avatar fourroses666 commented on August 17, 2024

🚒

from evolution.

fourroses666 avatar fourroses666 commented on August 17, 2024

I'm having troubels with caching. The wayfinder navigation keeps linking to the wrong / old Id.
Maybe there is a possibility to add redirect 301 to .htaccess?

I have a add on to clear cache and its ok again then but my clients don't. Maybe the way FirstChildRedirect uses can be improved/changed?

When using Link attributes it does work good but thats not automaticly changed when an resource is unpublished or new resource is added.

from evolution.

bossloper avatar bossloper commented on August 17, 2024

Quite a while back FirstChildRedirect was updated. The default was changed from a 302 (temporary) redirect to a 301 (permanent) redirect. You will need to add a parameter &responseCode=302 to your FirstChildRedirect calls to prevent the browser caching the redirect. Personally, for a CMS it is quite common to have changing content and site structure and so would make more sense to revert FirstChildRedirect to having a default of a 302 redirect.

from evolution.

pmfx avatar pmfx commented on August 17, 2024

I agree with bossloper. Default 301 response can lead to unnecessary headache in most scenerios.

from evolution.

fourroses666 avatar fourroses666 commented on August 17, 2024

Not sure SEO wise the 302 is good but it could be a solution to add the parameter. I would like to see this option(s) to the settings Tab. I like the idea of Segr.

from evolution.

bossloper avatar bossloper commented on August 17, 2024

RE:302 - The parameter already exists as part of the snippet.
True it is not ideal for SEO, but that is a call you have to make based on how a particular site is managed. If you have a site where you are not the only manager and there are other managers occasionally renaming pages you have to decide between 'better SEO' and 'page not found'. From a usability perspective I cannot have site visitors clicking page links and ending up at a page not found. But if page rename is a rare occurrence for your site you might be ok with that risk.

from evolution.

fourroses666 avatar fourroses666 commented on August 17, 2024

Magento does great with automaticly add a rewrite to the new URL.

from evolution.

Dmi3yy avatar Dmi3yy commented on August 17, 2024

FirstChildRedirect has setting for set Order and ansver(301,302) i think do this by chekbox in doc not right way. For sample you can use weblink ) or any another way )

from evolution.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.