Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#901 2019-11-24 09:40:56

ibadullah
Member
From: Kabul, Afghanistan
Registered: 2017-09-16
Posts: 49

Re: smd_calendar: complete schedule / event / calendar / diary

Hi
the smd_calendar worked superb, thank you for such wonderful calendar, i have a question that, how to make that every single date show its article as article listing. same like article listing, can any one help? i mean i want to list all the events how it passable to see all event in single date if the event is more then 10.

Last edited by ibadullah (2019-11-24 11:35:25)

Offline

#902 2019-11-24 15:33:44

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,090
Website GitHub Mastodon Twitter

Re: smd_calendar: complete schedule / event / calendar / diary

…how it passable to see all event in single date if the event is more then 10.

Although I do not use this plugin, a limit="30" attribute would probably do it.


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#903 2019-11-24 16:59:02

ibadullah
Member
From: Kabul, Afghanistan
Registered: 2017-09-16
Posts: 49

Re: smd_calendar: complete schedule / event / calendar / diary

@colak thank you for response, i have tried the limit=“30” but it didn’t work, can you please suggest me another txp calendar that is suitable to show all the event in specific date?

Offline

#904 2019-11-24 17:05:21

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,090
Website GitHub Mastodon Twitter

Re: smd_calendar: complete schedule / event / calendar / diary

ibadullah wrote #320244:

@colak thank you for response, i have tried the limit=“30” but it didn’t work, can you please suggest me another txp calendar that is suitable to show all the event in specific date?

Could you please post the tag combination you are using in the forum so that we can debug it?


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#905 2019-11-24 17:23:06

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 4,726
Website

Re: smd_calendar: complete schedule / event / calendar / diary

If you’re talking about an article with repeating events, try eventlimit="30" or whatever your maximum needs to be.

If you’re talking about a way to list multiple separate events that take place on the same day, see Example 4 in the docs for an example of using txp:if_different to only show the date title once for each day.


TXP Builders – finely-crafted code, design and txp

Offline

#906 2019-11-26 11:35:40

ibadullah
Member
From: Kabul, Afghanistan
Registered: 2017-09-16
Posts: 49

Re: smd_calendar: complete schedule / event / calendar / diary

actually i have website project for a news agency and it put more then 50 news every day, now he want that the visitor can see the news in single date, i mean when he click on a single date all the news should be list in related date, now it is listing but only 10 news.
when i click the specific date all the article list with this url:

www.domain.com/?date=2019-11-18&s=dari

Here is the calendar code:

<div role="tabpanel" class="tab-pane" id="profile">
          <txp:smd_calendar size="small" dayformat="Sun,Mon,Tue,Wed,Thu,Fri,Sat" select="month,year" selectbtn="chose" id="calendar" yearwidth="1,3" limit="30" />
        </div>

Last edited by ibadullah (2019-11-26 11:48:24)

Offline

#907 2019-11-26 12:14:51

etc
Developer
Registered: 2010-11-11
Posts: 5,186
Website GitHub

Re: smd_calendar: complete schedule / event / calendar / diary

Hi,

as I get it, smd_calendar only creates links, but articles are output by <txp:article />? Try to find <txp:article /> tag in your page code and pass it limit="99" attribute.

Offline

#908 2019-11-26 17:45:14

ibadullah
Member
From: Kabul, Afghanistan
Registered: 2017-09-16
Posts: 49

Re: smd_calendar: complete schedule / event / calendar / diary

etc Developer,
i tired but no result, can you explain it more plz…

Offline

#909 2019-11-26 18:04:58

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 4,726
Website

Re: smd_calendar: complete schedule / event / calendar / diary

Have a look at the plugin docs for smd_article_event. That is the plugin’s equivalent to article_custom but can take account of repeating events and, as far as I remember, also events that span a date (e.g. begin before that day / end after that day).

It has a from and to attribute which you can use to restrict which event articles it shows, and it has limit and eventlimit attributes to allow you to show a number of events per day (or recurring events). You’ll find those instructions in the plugin docs (linked to from Admin › Plugins) and they’re listed in the plugin code here.


TXP Builders – finely-crafted code, design and txp

Offline

#910 2023-10-22 23:33:34

amordecosmos
Plugin Author
From: London (Hometown: Vancouver)
Registered: 2004-08-03
Posts: 114
Website

Re: smd_calendar: complete schedule / event / calendar / diary

This plugin absolutely rocks and I’ve been able to make it jump through most of my calendar’s hoops.

But I can’t figure out how to do something seemingly obvious: an event that is every day until stopped but off Mondays.

No matter what I do with skipfield or omit field, it won’t stop the Mondays.

Help?

Offline

#911 2023-10-23 00:04:57

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,445
Website GitHub

Re: smd_calendar: complete schedule / event / calendar / diary

amordecosmos wrote #335810:

No matter what I do with skipfield or omit field, it won’t stop the Mondays.

Hmmm. I don’t think I considered that you’d want recurring skipped events. You have to list the dates by hand, yyyy-mm-dd style, which is impractical.

The only (untested) thing I can think of doing is using this in your stepfield:

every Tuesday, every Wednesday, every Thursday, every Friday, every Saturday, every Sunday

Be interesting to see if that works.


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#912 2023-10-23 00:23:21

amordecosmos
Plugin Author
From: London (Hometown: Vancouver)
Registered: 2004-08-03
Posts: 114
Website

Re: smd_calendar: complete schedule / event / calendar / diary

Thank you for the quick reply. But sadly, not.

every tuesday

etc doesn’t do anything.

tuesday 7 days

will get me a result on every Tuesday, but it won’t take multiple dates,

eg

tuesday 7 days, wednesday 7 days

etc.

Offline

Board footer

Powered by FluxBB