Comments (22)
Why are you not doing it dynamically: [[id]] This should be discussed in the forums.
from evolution.
Would suggest Weblink and add some code to make [+firstchild+], [+parent+] etc. possible …
from evolution.
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.
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');
BTW, missing translation: use current alias in alias path
from evolution.
BTW, missing translation: use current alias in alias path
you can help with translate
https://www.transifex.com/projects/p/modx-evolution/
from evolution.
The string was marked as translated on transifex.
from evolution.
The checkbox is superfluous in most situations and could be achieved with ManagerManager.
Maybe the Weblink input should be extended somehow.
from evolution.
yea maybe like adding to the dropdown with webpage and weblink the 3rd option: "Weblink with First redirect" ?
from evolution.
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.
Yup! Redirect to first I use allot but having other choises would be even better
from evolution.
ok do this in 1.1 or 1.0.14
from evolution.
And do not forget change "seo strict URLs" to use this setting
from evolution.
Also remember FirstChildRedirect defaults to a 301 redirect (Moved Permanently) that may be cached by your browser.
from evolution.
🔥 👷 🔥
any plans to do this for 1.0.16?
I like this idea allot but can't use it :(
from evolution.
🚒
from evolution.
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.
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.
I agree with bossloper. Default 301 response can lead to unnecessary headache in most scenerios.
from evolution.
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.
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.
Magento does great with automaticly add a rewrite to the new URL.
from evolution.
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)
- Dark theme selectable on config or user page? HOT 2
- Configurable limit of nested values in MODX-Configuration HOT 1
- eForm - hidden fields/arrays not validating like checkboxes HOT 1
- Who now "owns" Evo ? HOT 1
- Package Manager HOT 9
- MODxRE2_DropdownMenu ElementsInTree reload issue HOT 1
- Future Updates for MODX Evo HOT 2
- Репозиторий переехал! https://github.com/evolution-cms/evolution/ HOT 2
- The repository has moved!!! https://github.com/evolution-cms/evolution/ HOT 4
- Change class styles sectionHeader, sectionBody and new layout of sections HOT 1
- evocheck.php not showing anything (evo 1.04 ) HOT 7
- Renaming Folder "assets" for better Security HOT 2
- How to install/update a Rich text editor in Modx evolution? HOT 16
- $_GET['q'] can be empty
- MODx Evolution 1.2.1 Shopping Cart Solutions HOT 6
- При вставке логотипа [(login_logo)] картинка подставляется в [(login_bg)] HOT 1
- evo 1.2.1 tinymce 4 - how to link to type "images", not only "files" HOT 5
- 2 same alias
- Не корректная работа при обновлении страницы HOT 1
- Сниппет phpthumb и создание .htaccess
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from evolution.