ventrian / News-Articles

News Articles for DNN has been helping DNN administrators to publish articles and blogs to their DNN portals since 2004.
MIT License
38 stars 24 forks source link

Include Standard DNN Tokens #73

Open MaiklT opened 2 years ago

MaiklT commented 2 years ago

Could you please add the standard DNN tokens to be processed in the templates?

(I am in need of a current date token).

b-creative commented 2 years ago

Maybe you could use just script for that. Something like

<script> var today = new Date(); var dd = String(today.getDate()).padStart(2, '0'); var mm = String(today.getMonth() + 1).padStart(2, '0'); //January is 0! var yyyy = today.getFullYear(); today = mm + '/' + dd + '/' + yyyy; document.write(today); </script>

MaiklT commented 2 years ago

That's what I actually did, but I think token replacement would be a nicer idea...

b-creative commented 2 years ago

true

Timo-Breumelhof commented 2 years ago

As we are moving all our clients over from NA to Open Content I can assure you we are not going to add this. Maybe someone else can do a PR.

RichardHowells commented 2 years ago

Hi @Timo-Breumelhof - is your move to Open Content a manual switchover? Might it be possible to script content in the database from NA to Open Content?

Has anyone looked at that? I'd be interested in contributing if it's a realistic idea - even if it's only partially feasible.

Timo-Breumelhof commented 2 years ago

Yes, we built a tool for it, but it was a lot of work TBH. I demoed it in https://www.southernfrieddnn.com/Blog/TabId/208/PostId/127/sept-21-timo-breumelhof-opencontent-use-cases-jay-mathis-structured-content-in-dnn.aspx

RichardHowells commented 2 years ago

Big ask. Is that tool publicly available?

Timo-Breumelhof commented 2 years ago

No, sorry. We are selling it as a service ATM.

RichardHowells commented 2 years ago

Fair enough. Thank you.