*** lelkneralfaro has joined #novawebdev | 04:04 | |
*** lelkneralfaro_ has joined #novawebdev | 06:01 | |
*** lelkneralfaro_ has joined #novawebdev | 06:56 | |
*** mjsir911 has joined #novawebdev | 08:38 | |
*** mjsir911 has joined #novawebdev | 09:04 | |
*** mjsir911 has joined #novawebdev | 09:41 | |
*** replaceafill has joined #novawebdev | 09:56 | |
*** mjsir911 has joined #novawebdev | 10:37 | |
*** mjsir911 has joined #novawebdev | 10:49 | |
*** jelkner has joined #novawebdev | 10:54 | |
jelkner | Good morning, replaceafill! | 10:55 |
---|---|---|
replaceafill | good morning jelkner! | 10:55 |
*** Dany has joined #novawebdev | 10:56 | |
jelkner | Dany is here talking about the next major user stories for NOVALACIRO | 10:57 |
jelkner | drum roll please.... | 10:57 |
jelkner | mailing lists! | 10:57 |
jelkner | she needs to be able to send emails to our members | 10:57 |
jelkner | from our system | 10:57 |
replaceafill | jelkner, makes sense | 10:58 |
replaceafill | jelkner, i could probably work on that next week | 10:58 |
Dany | replaceafill, do you want I make that as a issue in gitlab? | 10:59 |
jelkner | i told her that we knew community groups were going to want that | 10:59 |
replaceafill | Dany, please | 10:59 |
Dany | replaceafill, ok | 11:00 |
jelkner | we have an event on june 9th | 11:00 |
jelkner | we need to contact members for that | 11:00 |
jelkner | so i would say weekend of june 2 and 3 is good goal for using / testing | 11:01 |
jelkner | is that possible? | 11:01 |
replaceafill | jelkner, i think so | 11:01 |
jelkner | cool | 11:01 |
jelkner | let's shoot for that | 11:01 |
jelkner | cool, she just came up with another user story | 11:02 |
jelkner | texting! | 11:02 |
jelkner | we knew that was coming too | 11:02 |
Dany | replaceafill, I'll like to send the invitation by text but all at the same time | 11:02 |
replaceafill | jelkner, Dany that'll require some research | 11:02 |
jelkner | this is the kind of thing nvm and twu will want as well | 11:02 |
replaceafill | jelkner, Dany about which SMS gateway to use | 11:02 |
jelkner | +1 | 11:02 |
jelkner | when we can deliver these things | 11:03 |
jelkner | we will have customers lining up at our door | 11:03 |
replaceafill | jelkner, Dany this is what i see many developers use: https://www.twilio.com/sms | 11:03 |
replaceafill | jelkner, Dany i have never used it :) | 11:03 |
replaceafill | jelkner, Dany but we did some SMS handling with SchoolTool | 11:04 |
replaceafill | jelkner, Dany so i'm familiar with the process | 11:04 |
jelkner | well, replaceafill, learning new things if fun, right? ;-) | 11:04 |
replaceafill | jelkner, :D | 11:04 |
replaceafill | jelkner, indeed | 11:04 |
Dany | replaceafill, ok i just summit the issue | 11:10 |
replaceafill | Dany, hhmm | 11:12 |
*** lelkneralfaro has joined #novawebdev | 11:12 | |
replaceafill | Dany, 4) is not possible in our current setup | 11:12 |
replaceafill | Dany, we use mailing list software | 11:12 |
replaceafill | Dany, an address is set like members@novalaciro.org | 11:13 |
replaceafill | Dany, then anyone within the mailing list can send emails to that address | 11:13 |
replaceafill | Dany, and that email is spread among the members | 11:14 |
replaceafill | Dany, and you already have 1) right? | 11:16 |
replaceafill | Dany, i mean, with each profile in Tendenci | 11:16 |
replaceafill | Dany, for 2) i'd recommend either having a single mailing list and writing your emails in both languages | 11:18 |
replaceafill | Dany, i've seen emails in canadian mailing lists written in english and french | 11:18 |
replaceafill | Dany, or having 3!!! mailing lists members, members-es, members-en | 11:19 |
replaceafill | Dany, that would be an administration nightmare though | 11:20 |
replaceafill | jelkner, does this make sense ^? | 11:21 |
Dany | replaceafill, well I like the idea to send the email in both language, in that way people can feel more conect even when they don't share the same languages. Also most of the hispanic in the organization are try to learn english ant it could help | 11:24 |
replaceafill | Dany, cool | 11:24 |
replaceafill | Dany, for 4) maybe you could include some your email in the footers | 11:26 |
replaceafill | Dany, i mean if you want the member to contact you directly | 11:26 |
Dany | replaceafill, what do you mean? | 11:26 |
replaceafill | Dany, and not the mailing list | 11:26 |
Dany | replaceafill, that will be great | 11:26 |
replaceafill | Dany, so i'll reserve some time next week to set this up | 11:29 |
*** mjsir911 has joined #novawebdev | 11:35 | |
Dany | replaceafill, thanks | 11:40 |
replaceafill | Dany, aún no has creado páginas en Tendenci? | 11:46 |
Dany | replaceafill, cual pagina? | 11:54 |
replaceafill | Dany, páginas en general | 11:54 |
replaceafill | Dany, como administradora podés crear y modificar páginas | 11:54 |
replaceafill | Dany, dentro de Tendenci | 11:54 |
Dany | replaceafill, oh oh ya recuerdo | 11:54 |
replaceafill | Dany, :) | 11:55 |
replaceafill | Dany, la historia sobre la pestaña y las biografías del staff | 11:55 |
Dany | replaceafill, Si lo he hecho, lo hice con un calendario https://novalaciro.org/events/month/ | 11:55 |
replaceafill | Dany, la podés hacer con esas funciones | 11:55 |
replaceafill | Dany, ajá, algo así :) | 11:55 |
Dany | replaceafill, lo que no se es como crear la pagina de "quienes somos" | 11:55 |
replaceafill | Dany, le reasigné el issue a Edzon, te podrías poner de acuerdo con él para que te explique como se hace? | 11:56 |
replaceafill | Dany, pero básicamente vos tenés la capacidad de cambiar todo el contenido del sitio | 11:57 |
replaceafill | Dany, es decir, los administradores | 11:57 |
Dany | replaceafill, ohhh ok | 11:57 |
replaceafill | Dany, y recordá que tenemos un sitio de prueba para experimentar con dichas cosas | 11:58 |
replaceafill | Dany, el mismo que usamos para probar las IDs | 11:58 |
replaceafill | Dany, https://novalaciro.novawebdevelopment.org/ | 11:58 |
replaceafill | Dany, allí podés destruir lo que querás :D | 11:58 |
*** mr_german has joined #novawebdev | 12:02 | |
mr_german | hello, good morning replaceafill, jelkner, lelkneralfaro | 12:02 |
replaceafill | mr_german, good morning | 12:03 |
replaceafill | mr_german, ready to roll? | 12:03 |
replaceafill | mr_german, ? | 12:05 |
mr_german | replaceafill, yes, but, I need your help with "recent posts" | 12:06 |
mr_german | replaceafill, or how to put them in the homepage | 12:06 |
replaceafill | mr_german, that's why we are meeting... | 12:06 |
replaceafill | mr_german, hang out? | 12:06 |
mr_german | sure | 12:06 |
replaceafill | mr_german, hold on | 12:08 |
lelkneralfaro | mr_german, good morning | 12:10 |
*** dsmall has joined #novawebdev | 12:19 | |
replaceafill | mr_german, https://github.com/tendenci/tendenci/blob/master/tendenci/apps/pages/templatetags/page_tags.py#L49-L99 | 12:26 |
dsmall | replaceafill, Good morning | 12:29 |
replaceafill | dsmall, good morning | 12:36 |
replaceafill | mr_german, https://github.com/tendenci/tendenci/blob/master/tendenci/apps/perms/models.py | 12:36 |
replaceafill | mr_german, https://github.com/tendenci/tendenci/blob/master/tendenci/apps/pages/models.py | 12:36 |
dsmall | replaceafill, Check out my recent commit https://gitlab.com/duncan-small/Tendenci-Blog | 12:37 |
replaceafill | dsmall, sorry i was in a meeting | 12:53 |
dsmall | replaceafill, np | 12:53 |
replaceafill | dsmall, ah, that's the beginning of the blog app | 12:55 |
replaceafill | dsmall, cool | 12:55 |
dsmall | replaceafill, yup, super basic stuff for now | 12:55 |
replaceafill | dsmall, what's next? iterating over pages? | 12:55 |
dsmall | replaceafill, I was going to display post titles that would link to the blog page | 12:56 |
replaceafill | dsmall, ok | 12:56 |
replaceafill | dsmall, check this template tag: https://github.com/tendenci/tendenci/blob/master/tendenci/apps/pages/templatetags/page_tags.py#L49-L99 | 12:56 |
replaceafill | dsmall, you have an example there | 12:57 |
dsmall | replaceafill, perfect! | 12:57 |
replaceafill | dsmall, that list_pages tag will get you all the pages | 12:57 |
replaceafill | dsmall, and allow you to filter some | 12:57 |
replaceafill | dsmall, in this case you can filter by tag | 12:58 |
dsmall | replaceafill, that will be very helpful | 12:58 |
replaceafill | dsmall, so if you create several pages and assign them the same tag, say, 'post' | 12:58 |
replaceafill | dsmall, you could write {% list_pages as pages_list limit=10 tags="post" %} | 12:58 |
replaceafill | dsmall, and that would get you the "latest" 10 pages with that tag | 12:58 |
replaceafill | dsmall, ready to be iterated over | 12:59 |
replaceafill | dsmall, the tag gives you Page model objects back | 12:59 |
replaceafill | dsmall, so you have access to any attribute, like title in the example | 12:59 |
dsmall | replaceafill, cool, I kinda have that already in my index.html file | 12:59 |
dsmall | replaceafill, but simplified | 12:59 |
replaceafill | dsmall, correct, you just need to include the page tags like | 13:00 |
replaceafill | {% load page_tags %} | 13:00 |
replaceafill | dsmall, at the top of your template | 13:00 |
dsmall | replaceafill, okay cool | 13:00 |
replaceafill | dsmall, any questions? | 13:01 |
dsmall | replaceafill, not right now | 13:01 |
replaceafill | dsmall, cool, i'll let you go back to it then | 13:01 |
dsmall | replaceafill, i'll keep you updated | 13:01 |
replaceafill | dsmall, thanks | 13:01 |
*** mjsir911 has joined #novawebdev | 13:14 | |
*** Dany has joined #novawebdev | 13:17 | |
dsmall | replaceafill, I have the /blog/ page displaying all pages that have the tag 'test' (and are public) | 13:59 |
replaceafill | dsmall, excellent | 14:00 |
dsmall | replaceafill, by displaying I mean it prints the page title | 14:01 |
replaceafill | dsmall, sure | 14:01 |
dsmall | replaceafill, I haven't worked out templates yet | 14:01 |
replaceafill | dsmall, try something like this for each page: <p>{{ page.update_dt|date:"F j, Y - P" }}</p> | 14:02 |
replaceafill | dsmall, so you can see template filters in action | 14:03 |
replaceafill | dsmall, the filter is the |... part | 14:03 |
dsmall | replaceafill, how do I get the page to use my index.html file? | 14:03 |
dsmall | replaceafill, okay | 14:03 |
replaceafill | dsmall, the page? | 14:03 |
dsmall | replaceafill, how do I get index.html to be used in my view | 14:04 |
replaceafill | dsmall, could you push your code to see where you are? | 14:04 |
dsmall | replaceafill, I have | 14:04 |
replaceafill | dsmall, checking | 14:04 |
replaceafill | dsmall, oh, you're filtering in python | 14:05 |
replaceafill | dsmall, ok | 14:05 |
dsmall | replaceafill, ya for now | 14:05 |
replaceafill | dsmall, instead of returning an httpresponse | 14:05 |
replaceafill | dsmall, return render(request, 'blog/index.html', {'pages_list': pages_list}) | 14:06 |
replaceafill | dsmall, not sure if i got render's signature right :) | 14:06 |
dsmall | replaceafill, Alright I'll mess around with that | 14:07 |
replaceafill | dsmall, https://docs.djangoproject.com/en/1.8/topics/http/shortcuts/ | 14:07 |
replaceafill | dsmall, you'll need to adjust your template since you're doing the filtering in python and passing that already to the template | 14:07 |
replaceafill | dsmall, you don't need the template filter anymore | 14:08 |
replaceafill | dsmall, sorry | 14:08 |
dsmall | replaceafill, np | 14:08 |
replaceafill | dsmall, i meant you don't need the template tag | 14:08 |
replaceafill | dsmall, the 'list_pages' tag | 14:08 |
dsmall | replaceafill, ok | 14:09 |
mr_german | replaceafill, take a look https://i.imgur.com/banIyUZ.png | 14:32 |
replaceafill | mr_german, looks good, you should limit it to 3 | 14:33 |
mr_german | replaceafill, ok | 14:33 |
replaceafill | mr_german, in case titles are really long | 14:33 |
Dany | Hello World! | 15:07 |
*** ChanServ has joined #novawebdev | 15:12 | |
dsmall | clear | 15:18 |
*** ChanServ has joined #novawebdev | 15:30 | |
dsmall | replaceafill, I have made some more progress | 15:32 |
replaceafill | dsmall, checking | 15:34 |
replaceafill | dsmall, i don't think this will be necessary: <a href = '/blog/{{ page.guid }}/' > | 15:35 |
dsmall | replaceafill, Okay | 15:35 |
replaceafill | dsmall, i mean you can just send the user to the page, right? | 15:36 |
dsmall | replaceafill, right | 15:36 |
dsmall | replaceafill, I wasn't sure how much we wanted to move away from the pages | 15:36 |
replaceafill | dsmall, sure | 15:37 |
dsmall | replaceafill, I can change it to send it to the corresponding page | 15:37 |
replaceafill | dsmall, +1 | 15:37 |
replaceafill | dsmall, what's your idea here: r'^blog/(?P<post_guid>\w{8}-\w{4}-\w{4}-\w{4}-\w{12})/$' | 15:39 |
dsmall | replaceafill, that was the regex to catch the post_guid | 15:39 |
dsmall | replaceafill, but it will be removed along with <a href = '/blog/{{ page.guid }}/' > | 15:40 |
replaceafill | dsmall, any reason for not using the page.pk? | 15:41 |
dsmall | replaceafill, I don't know how to/ what that is | 15:41 |
replaceafill | dsmall, ah ok | 15:41 |
replaceafill | dsmall, <object>.pk is the primary key for a model object | 15:42 |
dsmall | replaceafill, ohhh | 15:42 |
replaceafill | dsmall, you know about databases, right? | 15:42 |
dsmall | replaceafill, that would be very helpful | 15:42 |
dsmall | replaceafill, yes | 15:42 |
replaceafill | dsmall, ok | 15:42 |
dsmall | replaceafill, i am pretty comfortable with SQL | 15:42 |
replaceafill | dsmall, yes, usually *.pk is the way to refer to objects uniquely | 15:42 |
replaceafill | dsmall, ah good | 15:42 |
dsmall | replaceafill, right | 15:42 |
replaceafill | dsmall, and there are alternatives to get an objects url | 15:43 |
replaceafill | dsmall, like https://github.com/tendenci/tendenci/blob/master/tendenci/apps/pages/templates/pages/search-result.html#L7 | 15:43 |
dsmall | replaceafill, oh wow, that is easy | 15:44 |
replaceafill | dsmall, thank you framework! :) | 15:44 |
replaceafill | dsmall, sometimes the pk is useful for calling views on the objects | 15:45 |
replaceafill | dsmall, see https://github.com/tendenci/tendenci/blob/265aac5e5d52554968810388c5ff9c47a65e4d03/tendenci/templates/feeds/file_description.html#L2 | 15:45 |
replaceafill | dsmall, {% url 'view_name_goes_here' arg1 arg2 argn %} | 15:46 |
replaceafill | dsmall, allows you to calculate urls | 15:46 |
dsmall | replaceafill, thats super cool | 15:46 |
replaceafill | dsmall, the 'view_name_goes_here' usually matches the name='...' argument you used in your urls.py module | 15:46 |
dsmall | replaceafill, right | 15:46 |
replaceafill | dsmall, so you could do {% url 'blog.blogContent' page.guid %} | 15:47 |
replaceafill | dsmall, and have the url generated automatically | 15:47 |
replaceafill | dsmall, to match your pattern | 15:47 |
dsmall | replaceafill, right now I have: <a href = "{{ page.get_absolute_url }}" > | 15:48 |
replaceafill | dsmall, that would work | 15:48 |
dsmall | replaceafill, so it sends it to the actual page | 15:48 |
replaceafill | dsmall, right | 15:49 |
dsmall | replaceafill, that way I don't need to make a new view | 15:49 |
replaceafill | dsmall, correct | 15:49 |
replaceafill | dsmall, i personally don't mind if the urls don't follow standard blog conventions like using /year/month/slug | 15:50 |
replaceafill | dsmall, it's not necessary for the first version | 15:50 |
dsmall | replaceafill, Ok cool | 15:50 |
replaceafill | dsmall, what we want is a single page, /blog | 15:50 |
replaceafill | dsmall, that displays pages with some criteria | 15:50 |
replaceafill | dsmall, like the tag == 'post' | 15:51 |
dsmall | replaceafill, right | 15:51 |
replaceafill | dsmall, or categories + subcategory | 15:51 |
replaceafill | dsmall, did you check the blog.tendenci.com example? | 15:51 |
replaceafill | dsmall, i mean the sidebar there | 15:51 |
dsmall | replaceafill, I am looking a it right now | 15:52 |
replaceafill | dsmall, that's wordpress btw | 15:52 |
replaceafill | dsmall, so Recently | 15:52 |
replaceafill | dsmall, does some slicing like what you do | 15:52 |
replaceafill | dsmall, latest 5 or something | 15:52 |
replaceafill | dsmall, Tendenci Help and Twitter are irrelevant | 15:52 |
dsmall | replaceafill, right | 15:52 |
replaceafill | dsmall, then CATEGORIES | 15:53 |
replaceafill | dsmall, we'll want that | 15:53 |
dsmall | replaceafill, I can easily implement categories | 15:53 |
replaceafill | dsmall, i love the "easily" part :D | 15:53 |
dsmall | :) | 15:53 |
replaceafill | dsmall, never use it in front of users.... | 15:53 |
replaceafill | dsmall, or customers | 15:53 |
dsmall | replaceafill, of course | 15:53 |
replaceafill | dsmall, :D | 15:53 |
replaceafill | dsmall, then FROM THE ARCHIVES | 15:53 |
replaceafill | dsmall, the dropdown is kind of nice | 15:54 |
replaceafill | dsmall, i usually see years first | 15:54 |
replaceafill | dsmall, as links | 15:54 |
replaceafill | dsmall, then drilled down until the current month | 15:54 |
dsmall | replaceafill, ya | 15:54 |
replaceafill | dsmall, and ability to go to other months in the same year or differnt years | 15:54 |
replaceafill | dsmall, that's your call | 15:54 |
replaceafill | dsmall, how you want to do that | 15:54 |
replaceafill | dsmall, but all of that logic comes from the created_dt attribute | 15:55 |
replaceafill | dsmall, in the page model | 15:55 |
dsmall | replaceafill, It will probably come down to how tendenci formatted the date originally | 15:55 |
replaceafill | dsmall, what do you mean? | 15:55 |
dsmall | replaceafill, I will organize the archive based on the format of the created_dt var | 15:56 |
replaceafill | dsmall, well there's also update_dt | 15:57 |
replaceafill | dsmall, oh sorry i meant create_dt before | 15:57 |
dsmall | replaceafill, me too, oops | 15:57 |
replaceafill | dsmall, so you could do it based on last update too | 15:57 |
dsmall | replaceafill, yup | 15:57 |
replaceafill | dsmall, so if you click on a category in the tendenci blog you get to: https://blog.tendenci.com/category/facebook/ | 15:58 |
replaceafill | dsmall, i don't think tendenci has that yet | 15:58 |
dsmall | replaceafill, what do you mean? | 15:59 |
replaceafill | dsmall, you can't go to /pages/search and filter by category | 15:59 |
replaceafill | dsmall, and the current template tags like list_pages only allow you to use tags | 16:00 |
dsmall | replaceafill, if you put categories:<example> into the search bar you can | 16:00 |
replaceafill | dsmall, ah i thought that was only possible for tags too | 16:00 |
dsmall | replaceafill, it is category:<example> | 16:01 |
dsmall | replaceafill, not categories, my bad | 16:02 |
replaceafill | dsmall, ah | 16:02 |
replaceafill | dsmall, nice | 16:02 |
replaceafill | dsmall, so that's done too :) | 16:02 |
replaceafill | dsmall, you just list the categories and send people to /pages/search with the right query | 16:03 |
dsmall | replaceafill, Yup | 16:03 |
replaceafill | dsmall, you're all set for glory! | 16:03 |
replaceafill | :D | 16:03 |
replaceafill | dsmall, then you want to do some pagination, make it look pretty, etc | 16:03 |
replaceafill | dsmall, but we only need basic at this point | 16:03 |
dsmall | replaceafill, right, I have been aiming for functionality instead of looks | 16:04 |
replaceafill | dsmall, sure, until jelkner looks at it ;) | 16:04 |
replaceafill | dsmall, then he'll give you the "it's all about how it looks" speech | 16:04 |
dsmall | replaceafill, haha yes | 16:05 |
replaceafill | dsmall, https://blog.tendenci.com/2018/04/ | 16:05 |
replaceafill | dsmall, by month | 16:05 |
*** hrodriguez has joined #novawebdev | 16:05 | |
replaceafill | dsmall, maybe /pages/search can be extended to understand year + month | 16:05 |
replaceafill | + day | 16:05 |
jelkner | Good afternoon, hrodriguez | 16:06 |
hrodriguez | Hello! jelkner | 16:06 |
dsmall | replaceafill, possibly | 16:07 |
dsmall | replaceafill, i can take a look at it | 16:07 |
replaceafill | dsmall, the pages.search view doesn't look that complicated | 16:07 |
replaceafill | dsmall, sure | 16:07 |
dsmall | replaceafill, perfect | 16:07 |
replaceafill | dsmall, you'll need to read this: https://docs.djangoproject.com/en/1.8/topics/db/queries/#complex-lookups-with-q-objects | 16:08 |
replaceafill | dsmall, to make smarter filter(...) calls | 16:08 |
replaceafill | dsmall, by default filter(...) calls do AND operations | 16:09 |
replaceafill | dsmall, filter(attr='a', attr2='b') | 16:09 |
replaceafill | dsmall, Q objects allow you to do OR operations | 16:09 |
dsmall | replaceafill, cool | 16:09 |
replaceafill | dsmall, ok, i'll let you go back to it | 16:09 |
Dany | Hello World! | 16:10 |
dsmall | replaceafill, alright, I'll let you know when I make some more progress | 16:10 |
replaceafill | dsmall, cool | 16:10 |
replaceafill | Dany, you sound a lot like zOnny :D | 16:10 |
Dany | hey replaceafill | 16:12 |
*** zOnny has joined #novawebdev | 16:14 | |
dsmall | replaceafill, quick question | 16:37 |
replaceafill | dsmall, yes? | 16:38 |
dsmall | replaceafill, how would I send another list like pages_list in my render call? | 16:38 |
replaceafill | dsmall, the third argument in render(...) is a dictionary | 16:39 |
replaceafill | dsmall, you can extend it as you need | 16:39 |
replaceafill | dsmall, those "keys" will be available to the template | 16:39 |
*** nrcerna has joined #novawebdev | 16:39 | |
replaceafill | dsmall, so i could send {'foo': 1, 'bar': 2, 'baz': 3} | 16:39 |
replaceafill | dsmall, and use 'foo', 'bar' and 'baz' in the template as variables with those values | 16:40 |
replaceafill | dsmall, like {% url 'someview' baz %} | 16:40 |
dsmall | replaceafill, so like { 'categories_list': categories_list, 'pages_list':pages_list} | 16:40 |
replaceafill | dsmall, correct | 16:40 |
dsmall | replaceafill, cool | 16:40 |
replaceafill | dsmall, you don't need to name them _list ;) | 16:40 |
nrcerna | replaceafill: Descubrí como entrant desde el cel jaja | 16:41 |
dsmall | replaceafill, right, its just how I have them set up already | 16:41 |
replaceafill | dsmall, sure | 16:41 |
replaceafill | nrcerna, eeehhh!!! | 16:41 |
nrcerna | Jajaja,por fin! | 16:41 |
mr_german | replaceafill, see you tomorrow!! | 16:59 |
replaceafill | mr_german, see you | 16:59 |
*** lelkneralfaro has joined #novawebdev | 17:41 | |
dsmall | replaceafill, I am stuck | 17:55 |
replaceafill | dsmall, what's up? | 17:56 |
dsmall | replaceafill, I want to display page.content under the page.title on the /blog/ landing page, but page.content is in html not plain text (it has <p> tags around it) | 17:56 |
replaceafill | dsmall, correct | 17:57 |
dsmall | replaceafill, whats the best way to get just the plain text? | 17:58 |
replaceafill | dsmall, you can't it's an html field | 17:58 |
dsmall | replaceafill, oh ok | 17:58 |
replaceafill | dsmall, look at this: https://github.com/tendenci/tendenci/blob/master/tendenci/apps/pages/templates/pages/view.html#L47-L49 | 17:59 |
replaceafill | dsmall, that's the template that gets rendered when you "call" a page | 17:59 |
replaceafill | dsmall, you need the |safe filter | 17:59 |
replaceafill | dsmall, and then just print {{ }} the output | 18:00 |
dsmall | replaceafill, ohhh okay, so print {{ page.content|safe }} ? | 18:00 |
replaceafill | dsmall, i also recommend you to see how /pages/search renders each piece: https://github.com/tendenci/tendenci/blob/master/tendenci/apps/pages/templates/pages/search-result.html#L19-L21 | 18:01 |
replaceafill | dsmall, |striptags is the filter to do something similar to "get plain text" | 18:01 |
dsmall | replaceafill, that makes sense | 18:01 |
replaceafill | dsmall, but it's not quite as getting plain text | 18:01 |
replaceafill | dsmall, try them out :) | 18:01 |
replaceafill | dsmall, oh and |truncatewords may be useful to you too | 18:01 |
dsmall | replaceafill, Will do | 18:02 |
replaceafill | dsmall, django has a ton of nice filters https://docs.djangoproject.com/en/1.8/ref/templates/builtins/#built-in-filter-reference | 18:02 |
dsmall | replaceafill, There are a lot of helpful ones, like date() | 18:04 |
replaceafill | dsmall, +1 | 18:06 |
dsmall | replaceafill, I have the categories up and content under the title, as well as large headers above each list | 18:20 |
replaceafill | dsmall, excellent! | 18:20 |
replaceafill | dsmall, screenshot? | 18:21 |
dsmall | replaceafill, sure give me one second | 18:21 |
dsmall | replaceafill, here: http://i.imgur.com/edaCzvF.png | 18:22 |
replaceafill | dsmall, nice | 18:22 |
replaceafill | dsmall, don't worry about any styling until you're ready to integrate with the ORA theme | 18:23 |
replaceafill | dsmall, we want just bare bones html for now | 18:23 |
dsmall | replaceafill, should I get rid of the styling? | 18:23 |
replaceafill | dsmall, no, just don't add too much | 18:24 |
dsmall | replaceafill, okay | 18:24 |
replaceafill | dsmall, you'll use most of our theme + bootstrap css to style | 18:24 |
dsmall | replaceafill, ok | 18:25 |
dsmall | replaceafill, whats the next step? | 18:30 |
replaceafill | dsmall, filtering by dates? | 18:30 |
replaceafill | dsmall, you could also start integrating into the theme if you prefer | 18:31 |
dsmall | replaceafill, do you want it to be done automatically or by input from the user? | 18:31 |
replaceafill | dsmall, let's start the way blog.tendenci.com does it | 18:31 |
replaceafill | dsmall, by month | 18:31 |
replaceafill | dsmall, through a dropdown | 18:32 |
replaceafill | dsmall, have you tried subcategories yet? | 18:32 |
dsmall | replaceafill, Alright i'll get started | 18:32 |
dsmall | replaceafill, no, but I think it would be just as easy as categories | 18:32 |
dsmall | replaceafill, I havent looked into it | 18:33 |
replaceafill | dsmall, ok, np | 18:33 |
replaceafill | dsmall, categories is fine for now | 18:33 |
dsmall | replaceafill, Ok | 18:33 |
*** lelkneralfaro has joined #novawebdev | 18:48 | |
replaceafill | ACTION signs off for the day | 19:45 |
jelkner | ACTION signs off for the night | 20:42 |
*** mjsir911 has joined #novawebdev | 22:11 |
Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!