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
Project Euler #1 in C++
Can the Flaming Sphere spell be rammed into multiple Tiny creatures that are in the same 5-foot square?
Did Mueller's report provide an evidentiary basis for the claim of Russian govt election interference via social media?
Strange behavior of Object.defineProperty() in JavaScript
How does Belgium enforce obligatory attendance in elections?
Why do aircraft stall warning systems use angle-of-attack vanes rather than detecting airflow separation directly?
Tannaka duality for semisimple groups
How could we fake a moon landing now?
How often does castling occur in grandmaster games?
Trademark violation for app?
Antipodal Land Area Calculation
Is there any word for a place full of confusion?
Most bit efficient text communication method?
What is an "asse" in Elizabethan English?
How many time has Arya actually used Needle?
Sum letters are not two different
How do I find out the mythology and history of my Fortress?
What are the discoveries that have been possible with the rejection of positivism?
How does the math work when buying airline miles?
How can I set the aperture on my DSLR when it's attached to a telescope instead of a lens?
What does Turing mean by this statement?
Is there hard evidence that the grant peer review system performs significantly better than random?
Why does it sometimes sound good to play a grace note as a lead in to a note in a melody?
Central Vacuuming: Is it worth it, and how does it compare to normal vacuuming?
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 2 days ago
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 2 days ago
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