Get the App
SLTechnology News&Howtos  ›  Servers  › 

Dede calls the method of abbreviated title shorttitle and link address through SQL

Shulou Source: shulou.com Published: 2022-06-02 04:37:40 10月03日 Update

Editor to share with you how Dede calls the abbreviated title shorttitle and link address through SQL. I hope you will gain a lot after reading this article. Let's discuss it together.

How does Dede call the abbreviated title shorttitle and link address through SQL?

This article is mainly for you to share the method of calling the article with shorttitle with sql and getting the static address link of the article. Friends who need it can refer to it.

In order to use this effect, I worked for 2 hours and fainted to death.

Objective: to achieve multiple headlines needed for the home page, appear in parallel, and save page space (the original title is too long)

The code is as follows:

{dede:sql sql= "select id,shorttitle from dede_archives where title thanks thanks" order by id desc limit 0Pol 10 "} [field:shorttitle/] {/ dede:sql}

Description: with regard to the acquisition of static addresses, it borrows the methods of others.

Today, I discovered this method in order to implement the topic list page in dedecms 5.1 by calling shorttitle:

By modifying the

Add arcs.shorttitle, and then call [field:shorttitle/] in the template list_spec.htm page, and so on, we can also join others that do not have it. Great work done.

After reading this article, I believe you have a certain understanding of Dede's method of calling the abbreviated title shorttitle and link address through SQL. Want to know more about it. Welcome to follow the industry information channel. Thank you for your reading!

Tags: Address method title link abbreviation article article page static and so on topic code original text great work headline finished hour effect more friends Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno OPPO Reno Apple Huawei MySQL Linux