Git Product home page Git Product logo

Comments (5)

ansichtsache avatar ansichtsache commented on June 8, 2024 1

hi, du könntest dir den view "article-teaser-list.php" um den termin erweitern.

from newsmanager.

webregie avatar webregie commented on June 8, 2024 1

Ganz grob ohne Sprachen geht es so:

$newsDataId = UrlGenerator::getId();
$newsArticleId = 15;
$sql_limit = "LIMIT 0, 3";

$datas = rex_sql::factory()->getArray('SELECT * FROM rex_newsmanager ORDER BY createdate DESC ' . $sql_limit, [$newsDataId]);
  
if (count($datas)) {
	echo '<ul>';
	foreach ($datas as $data) {
		echo '<li>' . $data['createdate'] . '<a href="' . rex_getUrl($newsArticleId, '', ['newsmanager' => $data['id']]) . '">' . $data['title'] . '</a></li>';
	}
	echo '</ul>';
}

from newsmanager.

webregie avatar webregie commented on June 8, 2024 1

Mit Datum schick:

$newsDataId = UrlGenerator::getId();
$newsArticleId = 15;
$sql_limit = "LIMIT 0, 3";

$datas = rex_sql::factory()->getArray("SELECT * FROM rex_newsmanager ORDER BY createdate DESC " . $sql_limit, [$newsDataId]);

if (count($datas)) {
    echo '<ul>';
    foreach ($datas as $data) {
        echo '<li><span class"date">' . date("d.m.Y", strtotime($data['createdate'])) . '</span><br /><a href="' . rex_getUrl($newsArticleId, '', ['newsmanager' => $data['id']]) . '">' . $data['title'] . '</a></li>';
    }
    echo '</ul>';
}

from newsmanager.

georgkaser avatar georgkaser commented on June 8, 2024

Exakt :) - Oder die Daten einfach direkt mittels MySQL auslesen und ausgeben - das geht ja immer:
https://redaxo.org/doku/master/datenbank-queries

from newsmanager.

webregie avatar webregie commented on June 8, 2024

Danke für die schnelle Antwort. Habt ihr einen Beispielcode für irgendwelche Direktabfragen hier drin? Mir war mal so. Dann kann ich das bauen. Code folgt dann auch.

from newsmanager.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.