-
Notifications
You must be signed in to change notification settings - Fork 33
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
Widget for tag display #6
Comments
We need to think around that widget features. |
All cases i could imagine for tags widgets but not sure all of them will be really useful:
It's more than one widget described here. Let the discussion be started! :} |
I think 1+2+3+4+5+8 = one widget.
I do not think its good idea since |
@a-komarev As i see we have 2 widgets here (except 6,7,10): |
6, 7, 10 are for |
Display widgets should be able to replace spaces in links with
Example: |
@a-komarev It already handled by framework. |
Am I missed something? <?php foreach ($model->tagNames as $tag) : ?>
<?= Html::a($tag, ['/tag/' . $tag]) ?>
<?php endforeach ?> This code generating me links with spaces: |
Yes, ofcource. This:
is not right solution. Such tasks should be solved by configuring
or even better:
Last example when Rules example:
|
@creocoder Thanks for a brief explanation! And this way more flexible for multiple tags filtering I suppose. I reserved <?php foreach ($model->getTagNames(true) as $tag) : ?>
<?= Html::a($tag, ['/tag/view', 'tag' => $tag]) ?>
<?php endforeach ?> Haven't thought about SluggableBehavior for tags, but sounds interesting. Will be great to have an example of this way in wiki of this repository. |
@a-komarev Can you open separate documentation issue? We can explain how to set up |
Have you planned to create a widget to display tags with links on them in view actions or this repository will contain only TaggableBehavior?
IMHO: Separate repository with require will be better solution.
The text was updated successfully, but these errors were encountered: