Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Admin "add content language" feature #58

Open
neil-jennings opened this issue Jul 11, 2017 · 25 comments
Open

Admin "add content language" feature #58

neil-jennings opened this issue Jul 11, 2017 · 25 comments

Comments

@neil-jennings
Copy link
Contributor

  • with option to copy from existing language
@SarajevoNo1
Copy link

Can you describe this modification a little bit closer ?!

@chadanuk
Copy link
Contributor

chadanuk commented Jul 20, 2017

@SarajevoNo1 We will add an ability to add multiple languages.

At the point that the language is added, the block content from an existing language can be copied across.

@SarajevoNo1
Copy link

SarajevoNo1 commented Jul 20, 2017 via email

@SarajevoNo1
Copy link

SarajevoNo1 commented Jul 21, 2017 via email

@chadanuk
Copy link
Contributor

We'll bear that in mind. Good point.

@neil-jennings
Copy link
Contributor Author

You could add a Lanuage::set() around the sitemap templates and run then for each language.

Will look at adding a setting to return all urls.

@SarajevoNo1
Copy link

SarajevoNo1 commented Jul 24, 2017 via email

@SarajevoNo1
Copy link

SarajevoNo1 commented Jul 28, 2017 via email

@neil-jennings
Copy link
Contributor Author

templates/sitemap.blade.php

{!! PageBuilder::sitemap(['view' => 'sitemap']) !!}
{{ Language::set($id) }}
{!! PageBuilder::sitemap(['view' => 'sitemap']) !!}

may also have to alter the files in categories/sitemap/ to move the ul elements

@SarajevoNo1
Copy link

Hi Neil,

Now I added this piece of code in sitemap.blade.php (PICTURE IN ATTACHMENT); and then I get this:
lokom.croatiago.com/sitemap - (Picture in attachment sitemap)!!!

Did I add this in right way and what should else I need to add in what file to reproduce sitemap view on all languages....

sitemap blade php
sitemap

@SarajevoNo1
Copy link

SarajevoNo1 commented Jul 29, 2017 via email

@neil-jennings
Copy link
Contributor Author

Forgot the namespace:
\CoasterCms\Models\Laguange::set();

@SarajevoNo1
Copy link

SarajevoNo1 commented Jul 31, 2017 via email

@SarajevoNo1
Copy link

sitemap-error

@neil-jennings
Copy link
Contributor Author

{!! PageBuilder::sitemap(['view' => 'sitemap']) !!}
{{ \CoasterCms\Models\Laguange::set($id) }}
{!! PageBuilder::sitemap(['view' => 'sitemap']) !!}

@SarajevoNo1
Copy link

SarajevoNo1 commented Aug 8, 2017 via email

@SarajevoNo1
Copy link

500error

@chadanuk
Copy link
Contributor

chadanuk commented Aug 9, 2017

Try @php \CoasterCms\Models\Laguange::set($id) @endphp

@SarajevoNo1
Copy link

SarajevoNo1 commented Aug 10, 2017 via email

@SarajevoNo1
Copy link

SarajevoNo1 commented Aug 10, 2017 via email

@tliesnham
Copy link
Contributor

Thanks for reporting this, it does look as though sitemaps are only working for the base language. We'll take a look into this as soon as possible, and will let you know when we've found a solution.

@SarajevoNo1
Copy link

SarajevoNo1 commented Aug 10, 2017 via email

@SarajevoNo1
Copy link

SarajevoNo1 commented Aug 18, 2017 via email

@SarajevoNo1
Copy link

SarajevoNo1 commented Aug 29, 2017 via email

@neil-jennings
Copy link
Contributor Author

Hi Tarik,
We have no timescale for this at the moment. We will let you know when we build this in.
Neil

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants