Using store directive to get url for different store view Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) Announcing the arrival of Valued Associate #679: Cesar Manara Unicorn Meta Zoo #1: Why another podcast?Store code in URL for every store view except for defaultStatic block link cuts part of the urlAdd a variable for current URL to static block/page CMSMagento2: Need current URL in HTML-head: Scripts and Style Sheets for hreflangMagento2 individual URL for each website301 redirect for multi website and store code added to urlChange store code in url without changing store codeMagento2 - Get store url for specific store in static cms blockHow to get category URL in multiple storesMagento 2 Wysiwyg editor adding admin/cms/wysiwyg/directive links to store url
Keyboard layout stuck into CZ_german no english layout after update, restore into original EN_us and EL_Gr ones
Did pre-Columbian Americans know the spherical shape of the Earth?
How do Java 8 default methods hеlp with lambdas?
Inverse square law not accurate for non-point masses?
The bible of geometry: Is there a modern treatment of geometries from the most primitive to the most advanced?
Did any compiler fully use 80-bit floating point?
Vertical ranges of Column Plots in 12
Does the main washing effect of soap come from foam?
"Destructive power" carried by a B-52?
Why shouldn't this prove the Prime Number Theorem?
The test team as an enemy of development? And how can this be avoided?
Maximum duration for Canada's short term visas?
Is a copyright notice with a non-existent name be invalid?
Releasing Patch File for BSD3 Licensed Project
3D Masyu - A Die
Noise in Eigenvalues plot
Why complex landing gears are used instead of simple, reliable and light weight muscle wire or shape memory alloys?
How can I prevent/balance waiting and turtling as a response to cooldown mechanics
Why are current probes so expensive?
Pointing to problems without suggesting solutions
Centre cell contents vertically
systemd and copy (/bin/cp): no such file or directory
What does 丫 mean? 丫是什么意思?
How to make triangles with rounded sides and corners? (squircle with 3 sides)
Using store directive to get url for different store view
Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern)
Announcing the arrival of Valued Associate #679: Cesar Manara
Unicorn Meta Zoo #1: Why another podcast?Store code in URL for every store view except for defaultStatic block link cuts part of the urlAdd a variable for current URL to static block/page CMSMagento2: Need current URL in HTML-head: Scripts and Style Sheets for hreflangMagento2 individual URL for each website301 redirect for multi website and store code added to urlChange store code in url without changing store codeMagento2 - Get store url for specific store in static cms blockHow to get category URL in multiple storesMagento 2 Wysiwyg editor adding admin/cms/wysiwyg/directive links to store url
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
Scenario:
In a static block, I need to generate the url for a specific page but not in the current store view, but to a specific store view / website.
Question:
Is there a combination of parameters that can be passed to the store directive to make this happen?
Something like store _direct="page-here" store_code=some-code or instead of store code, store_id or anything else.
magento2 multistore cms
add a comment |
Scenario:
In a static block, I need to generate the url for a specific page but not in the current store view, but to a specific store view / website.
Question:
Is there a combination of parameters that can be passed to the store directive to make this happen?
Something like store _direct="page-here" store_code=some-code or instead of store code, store_id or anything else.
magento2 multistore cms
add a comment |
Scenario:
In a static block, I need to generate the url for a specific page but not in the current store view, but to a specific store view / website.
Question:
Is there a combination of parameters that can be passed to the store directive to make this happen?
Something like store _direct="page-here" store_code=some-code or instead of store code, store_id or anything else.
magento2 multistore cms
Scenario:
In a static block, I need to generate the url for a specific page but not in the current store view, but to a specific store view / website.
Question:
Is there a combination of parameters that can be passed to the store directive to make this happen?
Something like store _direct="page-here" store_code=some-code or instead of store code, store_id or anything else.
magento2 multistore cms
magento2 multistore cms
asked Apr 17 at 8:33
Marius♦Marius
168k28324692
168k28324692
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
Apparently it does not work with _direct attribute and a different store view, but it works like this:
store url="page-url-here" _scope_to_url=1 _scope=store-code-or-id-here _nosid=1
_nosid=1 is optional. If you remove it the url will look like http://example/com/page-url-here/?SID=ajshajkshdaj
Leaving it in place removes the SID parameter
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "479"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f270440%2fusing-store-directive-to-get-url-for-different-store-view%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Apparently it does not work with _direct attribute and a different store view, but it works like this:
store url="page-url-here" _scope_to_url=1 _scope=store-code-or-id-here _nosid=1
_nosid=1 is optional. If you remove it the url will look like http://example/com/page-url-here/?SID=ajshajkshdaj
Leaving it in place removes the SID parameter
add a comment |
Apparently it does not work with _direct attribute and a different store view, but it works like this:
store url="page-url-here" _scope_to_url=1 _scope=store-code-or-id-here _nosid=1
_nosid=1 is optional. If you remove it the url will look like http://example/com/page-url-here/?SID=ajshajkshdaj
Leaving it in place removes the SID parameter
add a comment |
Apparently it does not work with _direct attribute and a different store view, but it works like this:
store url="page-url-here" _scope_to_url=1 _scope=store-code-or-id-here _nosid=1
_nosid=1 is optional. If you remove it the url will look like http://example/com/page-url-here/?SID=ajshajkshdaj
Leaving it in place removes the SID parameter
Apparently it does not work with _direct attribute and a different store view, but it works like this:
store url="page-url-here" _scope_to_url=1 _scope=store-code-or-id-here _nosid=1
_nosid=1 is optional. If you remove it the url will look like http://example/com/page-url-here/?SID=ajshajkshdaj
Leaving it in place removes the SID parameter
answered Apr 17 at 10:59
Marius♦Marius
168k28324692
168k28324692
add a comment |
add a comment |
Thanks for contributing an answer to Magento Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f270440%2fusing-store-directive-to-get-url-for-different-store-view%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown