7 years ago
10
Topic
Good day everybody.
I use SEBLOD very much, because I love it, but now, when links have to be shortly and nice this problem grows up more and more for me.
Example: I have a big project - a tourism agency. Customer can create a CITY(a JOOMLA category) and museums in this city (Articles). So, I show articles in each category by search - it's a SEBLOD phylosophy :). But - to make a good links, customer have to create a menu point for each category. This moment not very good - I want customer works from frontend without backend.
So, can we make links not with menu or somehow else without neccessary to create a menu points?
Get a Book for SEBLOD
684 Posts
rpoy
7 years ago
6
Level 1
Hi ComeOn,

Can you use a search type of links?  In the search type, use the HTML typogrophy (option #2) and build the link like so:
<a href="/index.php/$cck->getValue('cat_title')/$cck->getValue('etc...');";</a>

There was a similar issue here using SD Concat - so maybe that's another method, building a link that is stored in the database.

regards,

Randy
7 years ago
5
Level 2

Thanks for your answer, but 

I little bit don't understand. I haven't problem to build link. I have following problem - simple example: I can create a menu point "Categories" - List&Search type with search in categories. Now I have a list of categories. Next, I want to have a link to list of articles for each category. I can create List&Search with category_id as Live Value, BUT!!! It will be crazy link for each category, isn't it? Now only one variant of solving this problem is known for me - to create menu point for each category. But I can't create it every time when I create category. And my question is - is there another way? Native Joomla can show category inside without a lot of parameters in url, maybe we can do some similar...

27 Posts
Vio Cassel
7 years ago
4
Level 3

I am also interested in this question.

684 Posts
rpoy
7 years ago
3
Level 4

Hi!

I'm not exactly sure what you mean by crazy links.... 

I think you are on the right track.  First create a Search & List Type for the Categories with a single menu item pointing to City (in your case).   That will list all of the cities.

Then build another Search & List Type for the Articles (museums).  You can build a menu item for this, and then make a note of what the URL is because you can use that information to build your HTML link.

Back in the Category Search & List Type, on the City Name you can add a link on the Typography (option #2) using the HTML option.

If the museums in their own Content Type, then the url might be something like so:

<a href="/articles?cck=$cck->getValue('cat_title');">$cck->getValue('cat_title');</a>

It will depend on what your URL looks like for the second Search & List type.  All you need to do is copy the parameters from the Category Search & List Type and build that into your HTML link.

Hope that helps.

Randy

7 years ago
2
Level 5

Hi, and thanks for quick answer.

Crazy links - links with some parameters - href="/articles?cck=$cck->getValue('cat_title');. It's ot good for SEF and not nice for view. In native Joomla I can open Category blog with link like site.ru/category and go to the article from this blog with link site.ru/category/article. And I don't have to create menu point for category. I want some similar but with SEBLOD. There are a lot of ways and plugins to collect link from fields - it's not a problem, but I need to know what link I have to collect.

Sorry for annoying, but it's a simple task in Joomla is very hard in SEBLOD - I'm really wondered.

684 Posts
rpoy
7 years ago
1
Level 6

Hi,

Once the link renders it will look like this:

href="/articles?cck=my_cck_name

So you can build your link using calls like: $cck->getValue('cat_title');

Another example would be like this:

href="/articles?art_id=$cck->getValue('art_id');

might render like so:

href="/articles?art_id=6

By creating a Search & List type for your articles (museums), you can use that as an example of the link that you need to create, and then use that same format from your category list.

regards,

Randy

178 Posts
Jeka
7 years ago
0
Level 7

Hi Randy, ComeOn and sebloders!

I am also in need of normal SEF links.

I have created almost the same topic here.

There is no problem to get non-sef links in this situation. 

Problem is in SEF links.

For example:

Instead of 

/articles?art_id=6

We want to get 

/articles/alias.html

Please comment!

27 Posts
Vio Cassel
7 years ago
0
Level 1

Perhaps we will never know the answer from the developers on this issue...

7 years ago
0
Level 1

Hi,

Don't think any issue here.

Yes, not good to add a variable in the link for SEO purpose.

Just not used link path such as /category/articletitle. It's just a Joomla vision and don't make sense because the container (category or tag or whatever) is unlimited. Why not to do (if multi cat) /category1/category2/tag/title... 

So the solution here is to simple have only one menu item to all articles.

Thanks.

Sebastien.

251 Posts
Viktor Iwan
7 years ago
0
Level 1

on some cases, maybe create a manual redirection through .htaccess can be helpfull....

Get a Book for SEBLOD