last day (36 days later) »
carlcs
3:43 PM
Hey Dominic!
Dominic
Hi Carl
First time here
carlcs
What did you mean with you used the code before?
Did it already work?
Dominic
Yes, It did, before adding first locale from dashboard
To output code, I went according the documentation
carlcs
What do you mean with first locale?
Dominic
I was starting with craft, and wanted to see, How it works. So I was testing everything.
carlcs
3:53 PM
It's great, isn't it?
Dominic
By default there is English + first one
carlcs
first one what?
Dominic
Oo Yes, It is indeed!
locale
so at the end, there were two locales
carlcs
Let's say you're from china, so there's the two locales "zh" and "en".
Dominic
Correct.
carlcs
3:56 PM
And you have localisation set up to work via subfolders:
Dominic
Yes
carlcs
example.com/zh
and
example.com/en
if you're on
example.com/zh
, Craft will get everything from this "zh" locale only!
On
example.com/en
everything from "en", OK?
Dominic
Yes
Wait.
carlcs
entries, tags, everything
Dominic
I have example.com for en and example.zh for china
carlcs
3:59 PM
doesn't matter
Dominic
but It gets everything correctly
Now, tags doesn't get load
carlcs
So what's the problem you still have?
Yeah but why did you add the locale to it? leave it out, that's what I#m trying to explain you, OK?
You just said, it worked before adding it. So use the code I posted and you're fine!
Dominic
Do you mean added the locales to the code?
carlcs
You don't want to understand me, right?
Dominic
I'm trying
carlcs
4:04 PM
That's what you wrote:
"Yes, It did, before adding first locale from dashboard"
And you also said that the code I posted does look like the one you already had.
Dominic
Yes, but the code was untouched, I only added locales, so I can implement locales to the site
Like build the locales menu
Than I've noticed, that tags disappeared.
carlcs
Something else must have gone wrong.
The tag code works the same, on sites with localisation enabled and on sites without.
Dominic
It was odd to me too.
carlcs
Yep, now that you now understand that craft always gets the data from the locale you're currently on.
Hey aberkie! Welcome..
Dominic
Can wrong configuration in general.php do something to it?
carlcs
4:12 PM
No, I don't think so, because everything else works for you.
But sorry, Dominic. I'm leaving you now...
Dominic
Thank you Carl!
carlcs
Have fun exploring all of Craft's features!
Dominic
Yes, I will
last day (36 days later) »
all rooms
Transcript for
Feb '15
23
Mar
31
Discussion between carlcs and Dominic
join this room
about this room
00:00
06:00
12:00
18:00
all times are UTC
site design / logo © 2024 Stack Exchange Inc;
legal
mobile