Создание альфа-индекса (индекс А-З) и несколько других вопросов

More
3 years 11 months ago #8672 by Krx
 
Hello
I've just found your awesome module and I'm evaluating what I can do. 
I have few questions:

1. Can two filter modules with different set of search fields exist on same page?
I tried to duplicate module it and it works, but it always show the same fields.
It could probably be done with "Module Class Suffix" CSS but I'm looking if there is option to select which fields to display in module.

2. I'm trying to create Alpha (A-Z) index.
To have letters links on a top: # - A - B - C - ... - Y - Z - ALL
Clicking on B letter would filter articles with titles which starts with letter B. Clicking on # would filter titles which starts with numbers, and clicking on ALL would show all.

If this is possible, could you suggest what would be the best way to do it?
One of ideas is to to create custom field dropdown list with # A B C ... as values, and show it in filter as checkboxes, with labels hidden and styled with CSS.
But this adds to extra time to editing articles because for each article extra editing would be needed to select correct letter.

Much better way to do it would be to create for loop which would render letters as links and attach search function to it search onclick
Something like this:
echo '[url=index.php?letter=#]#[/url] | '; echo '[url=index.php?letter=ALL]ALL[/url] | '; for($i=65; $i<=90; $i++) { $letter = chr($i); echo '[url=index.php?letter='.$letter.']'.$letter.'[/url] | '; }
So this would search for first letter in article title.

Problem is that in not good with javascript and ajax, so I 'd appreciate any help.

Sorry if I posted duplicate questions, I tried to look for answers on this forum but couldn't find relevant topic.

Thanks
Best Regards

Please Log in or Create an account to join the conversation.

More
3 years 11 months ago #8673 by JoomLine
Hello. The module was created for filtering by Joomla fields, it is not intended for what you described.

Please Log in or Create an account to join the conversation.

More
3 years 11 months ago #8674 by Krx
Hello

If I create custom text field named "Letter"
And fill it with only one letter

Article title: Bread, Letter field: B
Article title: Milk, Letter field: M
Article title: Soup, Letter field: S

What would be the best way to create javascript function which would filter articles by field custom Letter, and to call that function with click on url?
Example, click on url B would filter all articles which have Letter field B
I know hot to auto-fill custom field, so this would be elegant solution as well.


Thanks for the reply

I know that this isn't standard module functionality question, and if you don't provide custom solutions I will understand.

Also, if you offer custom service for this task I'm willing to pay for this help

I needed to ask :)

Best Regards

Please Log in or Create an account to join the conversation.

Powered by Kunena Forum

Last from the forum

    • virtual phone
    • One day, a monkey drove his car near a lake. Sudden, he saw a tiger under a tree. The tiger saw him, too. The tiger ran very fast at the monkey. The monkey was very afraid and he and his car fell into the lake. The monkey couldn't swim and he shouted. A rabbit came and he jumped into the lake. The abbit swam to the monkey but did not help him. Both of them shouted forhelp. Luckily, a giraffe came along. He was very tall. He helped the rabbit and the monkey.  
    • In Component / JL TV
    • gothotnews
    • For cervical spondylosis, taking chinese medicinal drug orally can achieve normal inner and external treatment. If it is a symptom of blockage and ache, we will deal with the outside attack of wind, cold and dampness or blood stasis with the aid of warming and dredging the meridians, activating blood movement and getting rid of blood stasis, or dispelling wind and dampness. If it's far a sickness of disgrace and ache, then the qi and blood of the internal organs must be improved, and the treatment must be to replenish the liver and kidneys, support the muscle tissue and bones, or nourish qi and blood.
    • In Component / JL Mail
    • best seo company
    • One crisp autumn afternoon, while playing near the house, Emma noticed something shiny half-buried in the dirt. She dug it up and found an old, ornate key with intricate designs. Excited, she wondered what it might open. With the key clutched tightly in her hand, she approached the old house. The door creaked open with surprising ease, and Emma stepped inside. The interior was just as dusty as the outside, but it had an air of mystery. She wandered through the rooms, discovering old furniture and forgotten toys. Each room told a story of a family that had once lived there long ago. As she explored, Emma came upon a small, locked chest in the corner of one room. Her heart raced as she inserted the key into the lock. With a satisfying click, the chest opened to reveal a collection of old photographs, letters, and a beautiful, hand-carved wooden box. Inside the wooden box was a small locket. When Emma opened it, she saw a picture of a young girl who looked strikingly similar to herself. Beside the locket was a letter addressed to "The Finder of the Key." The letter explained that the house had belonged to a family who had to leave quickly many years ago, leaving behind their cherished belongings. The letter's writer was the young girl’s great-grandparent, and the locket was a family heirloom meant to be passed down. Emma's heart swelled with joy as she realized that she had discovered a piece of her own history. She decided to bring the locket and the other treasures to her parents. They were amazed and touched by the find, and they decided to restore the old house, making it a special place to remember their family’s history. From that day on, the house was no longer forgotten. It became a cherished part of the town, where Emma and her family would often visit, sharing stories of the past and making new memories. And so, the little girl with the curious heart had not only uncovered a hidden treasure but had also brought new life to a piece of history, all with a simple, forgotten key.
    • In Component / JL Mail
© 2010- JoomLine
The Joomla!® name is used under a limited license from Open Source Matters in the United States and other countries. joomline.net is not affiliated with or endorsed by Open Source Matters or the Joomla! Project.

email: This email address is being protected from spambots. You need JavaScript enabled to view it.